A good question is never answered. It is not a bolt to be tightened into place but a seed to be planted and to bear more seed toward the hope of greening the landscape of the idea. John Ciardi
There are only two hard things in computer science: cache invalidation, naming things, and off-by-one errors
String x = new String("abc") // creates two String object, the first one is new String() , the object created from a default String constructor which is eventually lost and the second is "abc" which is referenced by String variable X. Am I correct in what I have concluded??
A good question is never answered. It is not a bolt to be tightened into place but a seed to be planted and to bear more seed toward the hope of greening the landscape of the idea. John Ciardi
Originally posted by Sidd Cool:
when you say String s1 = "abc";, then one String object is created and is placed in the String pool, which is a special pool, different from the normal object heap.
Betty Rubble? Well, I would go with Betty... but I'd be thinking of Wilma.
"I'm not back." - Bill Harding, Twister
Did you see how Paul cut 87% off of his electric heat bill with 82 watts of micro heaters? |