. Explain Java String Pool.



. Explain Java String Pool...

Answer / 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

More Core Java Interview Questions

What does percent mean in java?

0 Answers  


How are this() and super() used with constructors?

9 Answers  


How many decimal digits is 64 bit?

0 Answers  


What is the difference between notify and notifyall method?

0 Answers  


Does java trim remove newline?

0 Answers  


What methods are called, When we navigate from one applet to another applet?

1 Answers  


How many types of memory areas are allocated by jvm?

0 Answers  


Using callable statement how can you pass out parameters, explain with example?

0 Answers  


Why do we need singleton class?

0 Answers  


What is a lock or purpose of locks in java?

0 Answers  


Write a program that takes a 5 digit number and calculates 2 power that number and prints it.

1 Answers  


What is java object name?

0 Answers  


Categories