Enthuware - Best Mock Exams and Questions for Oracle Java Certifications
Quality Guaranteed - Pass or Full Refund!
Originally posted by Amit Punjwani:
Anil,
Thanx for the clarifications but. But I am not yet clear regarding the question on G.C U have said that String literals are never G.Ced. I agree totally with u. But in question 60 at
line 5 an object is being created by (a+b). Is this also a String literal? Or is it an object created on the heap memory?.
If it is a String literal then u're ans is right.
Still Confused...........
Amit
Originally posted by Paul Anil:
3. Concept : Interned Strings ( ie. String literals, strings created with string literals and + operator and by calling intern() method on a string) are never garbage collected. So String returned by a + b will never be GCed.
So this means option C is correct.
[/B]
Open Group Certified Distinguished IT Architect. Open Group Certified Master IT Architect. Sun Certified Architect (SCEA).
Don't get me started about those stupid light bulbs. |