Originally posted by Thomas Paul:
Notice this statement:
first = new String(args[0]);
first is a completely different object then the String at args[0]. This statement is creating a second String object.
Originally posted by jim d:
if they r deprecated then dont choose them
Originally posted by Dave Vick:
Jyotsna
I think 4 is just worded so that it sounds like a good answer. wait() realy doesn't have anthig to do wiht synchronized objects specifically (you can call wait on any thread, regarless of wehter or not its in synchronized code). It's just that usually wait is used within the synchronized code to control access. when you call wait on a thread it just stops and waits. It doesn't do anything else. If it was in synchronozed code it'll release the lock on the monitor but it doesn't do anything to or with any other objects.
Dave
If I'm wrong on anything here someone please corect me.
Originally posted by Cindy Glass:
You ask this in a public forum with Paul Anil lurking about? Sortta loads the chances for a positive answer doesn't it?
I have heard GREAT things about that exam.