What do you understand by the term string pool?



What do you understand by the term string pool?..

Answer / Laljeet

In Java, the String pool is an internal data structure where the JVM stores all the strings that have been created using new keyword. It's used to avoid creating multiple objects for identical strings and thus conserves memory.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Core Java Interview Questions

how to convert mm/dd/yy to dd/mm/yy using collections in java.

4 Answers   Bosch,


What is tcp ip in java?

1 Answers  


What is difference between static class and normal class?

1 Answers  


Why only one Class is public in one file? Explain in details. Thanks in Advance.

12 Answers  


Write an algorithm program in java for the following question.. In a VLSI design techniques,they used rectangles to design circuits. EVery rectangle is to be placed according to x,y coordinates. Check whether or not two rectangles overlap each other. Here overlapping of rectangles is acceptable, if 1) one rectangle intersect with other. 2) one rectangle fully covers other. The time of algorithm should not exceed o(n logn).

1 Answers  


What is the difference between yielding and sleeping?

1 Answers  


What do you understand by classes in java?

1 Answers  


Which package has light weight components in java programming?

1 Answers  


tell me some common

2 Answers   TCS,


What are local variables?

1 Answers  


Explain an algorithm to find depth of a binary tree.

1 Answers   Akamai Technologies,


Can Applet have constructors?

5 Answers   Infosys,


Categories