Mathew Lee wrote:
sb2=null,
does it null sb2 object reference on stack or Manchester String Buffer object on heap.
Mathew Lee wrote:
when sb2=null does that means sb=null automatically?
The only thread that uses ock.notifyAll (); is main thread who sleeps for 3000.Why synchronized is used here?
synchronized (lock) {
lock.notifyAll ();
}
Mathew Lee wrote:>>>when sb2 points to Mancheser stringbuffer object then sb disconnected from Mancheser stringbuffer object
why does sb disconnected from Mancheser stringbuffer object. i was not clear on that. please advise
what is difference between null and empty.
instead of String can i keep object there instead