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 is an anonymous class in java?
What is main in java?
Why collection doesn’t extend cloneable and serializable interfaces?
I want to store more than 10 objects in a remote server? Which methodology will follow?
What is difference between iterator access and index access?
What are the features in java?
How can we pass argument to a function by reference instead of pass by value?
What are the important features of Java 9 release?
Why Java is not pure Object Oriented language?
Which is dependent variable?
When is the finalize() called?
What do you mean by exception handling in Java?
How do you create a first line indent?
Differences between external iteration and internal iteration?
Does every java program need a main?