1.

Where is String Pool stored?(a) Java Stack(b) Java Heap(c) Permanent Generation(d) Metaspace

Answer» Correct choice is (b) Java Heap

Easy explanation: When a string is created; if the string already exists in the pool, the reference of the existing string will be returned, else a new object is created and its reference is returned.


Discussion

No Comment Found

Related InterviewSolutions