. Explain Java String Pool.

Answer Posted / nashiinformaticssolutions

A collection of strings in Java's Heap memory is referred to as Java String Pool. In case you try to create a new string object, JVM first checks for the presence of the object in the pool. If available, the same object reference is shared with the variable, else a new object is created.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the string function?

759


What is diamond operator in java?

724


Can an integer be a string?

729


What is java’s garbage collected heap?

740


What does business logic mean?

757


Differentiate between static and non-static methods in java.

820


What do you mean by local class?

770


Explain how can you debug the Java code?

834


Is null false in java?

955


explain what is transient variable in java?

887


What is a databasemetadata?

734


Can I override protected method in java?

820


What is garbage collector?

829


What is a stack class in java ?

870


What is string and example?

793