Win a copy of Pipeline as Code this week in the Cloud/Virtualization forum!

John Johnson

Ranch Hand
+ Follow
since Nov 05, 2006
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 John Johnson

Thanks guys for your advice. Justin, thank you for the great link. I already bought Head First Design Patterns, will definitely buy the SCJD Book. Still not sure about getting Thinking In Java - it's a great book but it looks like most info there was covered in SCJP. I could be wrong of course.
Hey guys. Can anyone suggest a good book about Java Networking? I have O'Reilly's "Java Network Programming" but I find it to be more like a reference. I want a book that actually gives you examples and how to properly use Java's Network facilities. Any suggestions? Thank you!
Hey guys, I've heard before that XML bible and Professional XML are enough, but those were from year 2001. Newer versions of both of these books are available now. Which ones do you recommend?
SCJP has nothing to do with GUI, networking and databases. Absolutely nothing.
If I don't read the books I wouldn't be able to code in the first place. I must get the knowledge first, and only then apply it.
Hey guys!
After passing SCJP exam I am ready to begin studying for SCJD. The problem is that I had no previous experience in Java. The only reason I passed SCJP is because I programmed in C/C++ for quite a while and so I had some experience in OOP. So stuff like JDBC and RMI is foreign to me. What books you suggest I should read before even considering taking SCJD. I have already ordered Rusty Harold's "Java Network programming" and after I'm done with that I will read his book on RMI. What else should I consider reading? Please give me some guidance, I will appreciate it. Thank you.
Hey guys!
Just passed SCJP 5.0 with 89% (64/72). It's pretty good for me (although I was shooting for > 90%). It took me 3.5 months to get ready for the test. I usually took about 1.5 hours a day to study, although many days I didn't study at all, because I go to high school and play basketball. Here's what I did:
1. I read K&B which is the best book for SCJP. Spent about a week per chapter. Averaged 65% on exams at the end of each chapter.
2. Bought Whizlabs test prep. It is pretty good, although alot of stuff is off topic. I did all the tests except for the final one. Averaged 75%.
3. Bought Enthuware JQPlus. Wow! Guys, if you really want to pass the test you just have to get it. The real exam and UI is almost identical to those in JQPlus. I wouldn't have done it without this program. Thank you Enthuware! I averaged 86% on the tests (very close to the real score!)
4. Did 2 exams from K&B book, got 83% on both.

The key to passing the exam is to take as many mock exams as you can. After every exam taken you have to go through the answers you got wrong and understand them! If you don't do it then you will keep making the same mistakes over and over again! Good luck to all of you!

P.S. Oh, I forgot one important thing! Javaranch has helped me enormously. If I had a question or a doubt, Javaranch would be the only place for me to go. Everyday I would go to this forum and look for questions that other people ask. Some of them were very helpfull. Thank you Javaranch. See you in the SCJD forum!
[ January 26, 2007: Message edited by: John Johnson ]
14 years ago
Anthony, are you sure you typed it correctly in your editor? The code you gave compiles just fine, and gives output "11".
Um, okay, I think I got it. Please correct me if I'm wrong. No exceptions are thrown because nothing really happens to the object that was passed to append(). It just got casted to a string. If we were to call some methods like length(), then we would've gotten an exception. So NullPointerException is thrown only if we try to use members of the class.
Why this code doesn't throw an exception?
By the way, I always wondered if there is a way to declare objects pointed to to be final. Something like const pointers to const variables in c++.
Please explain why this code doesn't compile:
I've met this method in whizlabs, but don't think that it is on the real exam, b/c K&B did not cover it. But if you do come across this method, all it does it throw InterruptedException to another thread.
I just started really wondering about these two functions. Everywhere it says that notifyAll() causes all the waiting threads (on the same lock), to wake up and start running, as opposed to notify(), which wakes up only one thread. But its impossible to have threads sharing the same lock. So only one thread will wake up and receive the lock. So than, what is the difference between these two functions. Please help me understand this.