what is meant by string pooling?
Answer Posted / sivadasan
See,
String s = new String("Shiva");
Its creating two instances and one reference.
In the Two instance one is stored in Constant pool and
another one is stored in temp' pool.
What about String s = "Shiva";
Anybody can, pls clarify...
| Is This Answer Correct ? | 4 Yes | 3 No |
Post New Answer View All Answers
What are the types of strings?
How do you compare objects in java?
What is the difference between stringbuffer and stringbuilder?
What is methods in java?
What is default switch case? Give example.
What are the super most classes for all the streams?
What happens when heap memory is full?
How do I stop concurrentmodificationexception?
How is the marker interface used in Java?
What are local variables?
How does singleton class work?
How to connect to a remote database using Applet?
What is the loop in java?
What is number data type?
Is binary a low level language?