what is meant by string pooling?

Answer Posted / gaurav agrawal

dont misguide please, all the string objects created
without new operator are stored in pool which is a space in
memory, if any other object has the same content then a new
object will not be created.

Is This Answer Correct ?    35 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What if I write static public void instead of public static void in java?

842


How does thread synchronization occurs inside a monitor?

793


how does multithreading take place on a computer with a single cpu? : Java thread

923


What is boolean flag in java?

810


How we can run a jar file through command prompt in java?

740


When is the finally clause of a try-catch-finally statement executed?

744


Why there is no call by reference in java?

709


What an i/o filter?

745


Is java hard to learn?

705


Explain about main thread in java?

878


What is treemap in java?

745


What is the size of boolean variable?

840


What are data types in programming?

776


Can we sort a map in java?

779


Is class forname reflection?

734