Huachaitou Peek

Greenhorn
+ Follow
since Aug 07, 2010
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Huachaitou Peek

I am working on my first android application that is HelloAndroid. The problem I have is after I click "Run" from Eclipse and wait for a while, the HelloAndroid doesn't show up on the AVD if I don't click "menu" button on AVD. From the instruction, it seems the application should show up on the screen as soon as it's ready without clicking "menu" button. It's not a big deal to click "menu" but it doesn't seem to work as should be. I am using Eclipse on Ubuntu 11.4. If I use big screen size AVD for tablet, I will not be able to see my application since there is no "menu" button. Please let me know if you have any suggestion. Thanks in advance.
12 years ago
I am learning EJB too. I use Glassfish3.1 and Eclipse EE. After you build EJB jar file, you can drop the file into "autodeploy" directory. The "autodeploy" dir should be under your domain dir. From Eclipse EE, you can use export feature to export EJB module directly to specify dir.
Thanks a lot for the answer and extra thanks for the additional explanation. It's very helpful.
Please take a look at this piece of code :

This is from a 10 years old book. The book mentions that reading a published object reference doesn't guarantee that the reading thread will see the most recent values of the data that constitute the internals of the reference object. It means the above code doesn't work. The reason I ask is because I am not sure if this is still accurate in Java6. Some expert here may familiar with this and should be able to give the right explanation. I think this is a good thing to know for either the person who will be Java certified or a new certified one like me. Thanks.

Note : I tried to put indent on the code above but it didn't work. I hope it's not too difficult to read.
If I were you, I would get K&B book ( which designed for this purpose) read it, follow the advice, do the self-test, 3 mock exams that come with the book, download the free Exam Lab and finish every question. If you do good with those, be proud to be a java programmer. Per my understanding, breaking the rules they have, the certification can be revoked and you will waste your money.
Are you sure you are ready ? If you read K&B book, there is some info in there. Oracle also has a website, it tell you everything how to get certification.

Thakur Sachin Singh wrote:hai all i have clea rOracle scjp6 exam on 23 novenmmber...in that time i got the marksheet, after that Oracle not send me email confirmation to clear the exam...i want to know that..how many days i get my certificate...is there oracle send any email after clearing the exam??

please clear my doubt.




On the next day after I took the exam. Oracle send me email how to activate the account and verify the address. If you didn't get those email, you should contact Oracle using email address on your mark sheet. The shipping process will start after you verify the address.
This is true or false question from Master Exam 3, Has-a relationships always rely on instance variables. The answer is true.
I think I have read from somewhere and the answer is false because static variable can be counted. Does anybody knows what the correct answer is ? Thanks.
From what I read from this forum , it's more difficult from the real exam, but how much does it help to get good score on the real exam? What I mean is more difficult doesn't mean it helps. I plan to take the exam next week. I haven't scheduled yet. not sure if I am ready. I took the final exam from Exam Lab two days ago. I got 68 %. Exam Lab recommends to take the real exam within 7 days. Is that a good advice ? I understand the Exam Lab creator is one of the expert but would like to get more opinion from other experts here. Is the Master Exam from K&B book more close to the real exam ( same difficulty) ? I took two Master Exams before Exam Lab and the score were quite low 83 and 71%. How much should I get from the 3rd Master Exam before going to take the real exam ? That is the only one I have left. Are there any good indicators other than those two software I should use? I also took Certpal before. I don't remember the score but it's not high. Thanks.
I did the Master Exam 1 from KB book yesterday. Many of you might see this question before : What of the following methods are defined in the Thread class ? The run() method is one of the answer. run() method is defined in Runnable and Thread class overrides it. Is the answer correct or it's a bug ? In this case or similar cases ( overriding), can we say that run() method is defined in both Runnable and Thread class ? Thanks.
I got one question from CertPal that I couldn't figure it out. The option 1 is one of the answer. But from my understanding it doesn't sort the original list. I might misunderstanding something. any idea ? Thanks.

What can be done at #1 to sort the List - list ?



Choose: 2

Options

1.) Set set = new TreeSet(list);

2.) Set set = new SortedList(list);

3.) Collections.sort(list);

4.) Arrays.sort(list);

5.) Arrays.sort(list.toArray());

Explanation:

TreeSets automatically sort their elements.
Collections.sort() only accepts an argument of type list, which in this case is legal.
The Arrays.sort() method in option 5 does sort the array. But the list remains unsorted.

I don't see Inquisition from MockTest link , http://faq.javaranch.com/java/ScjpMockTests. Can you post the link here ? I did google and saw one but I am not sure if it's the same one. Why isn't Inquisition on the MockTest page ? Thanks.
I am preparing for the exam. I did the second Master Exam from K&B book and the score is low , 71%. Many mistake were from careless which I think I can fix it. But some mistake were from OO topic. I need a good solid concept on OO. I am looking for good info outside K&B book. I prefer something short but effective that can help me to solve at least the Master Exam with ease. Thanks for your help.

Wouter Oet wrote:Internally the TreeSet uses a TreeMap. And the TreeSet.add() delegates it to TreeMap.put(). Just open the source of that method and you'll see the bug. There is even a comment about the bug.




How can I take a look at source code ? Is there an easy way to do that ? Thanks.