What is string pool?



What is string pool?..

Answer / Ashok Chandra

String pool (or String literal pool) in Java is a region of memory used to store strings that have been declared as final and are not modified.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Core Java Interview Questions

Why webdriver is an interface?

1 Answers  


What about main thread in java?

1 Answers  


when i write string s1="java"; in one program(application) and string s2="java"; in another application on the same jvm will both objects s2,s2 will refer to same memory location where "java" is stored in string pool.

2 Answers  


What are the different access modifiers available in java?

1 Answers  


I have multiple constructors defined in a class. Is it possible to call a constructor from another constructor’s body?

1 Answers  


Explain about main thread in java?

1 Answers  


Is java based on c?

1 Answers  


What is ternary operator?

1 Answers  


What is the exact difference in between Unicast and Multicast object ?

4 Answers   Accenture,


How does a cookie work in Servlets?

1 Answers  


why java is not supporting multiple inheritence?

3 Answers  


why would you use a synchronized block vs. Synchronized method? : Java thread

1 Answers  


Categories