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
How does linkedlist work in java?
Why is String immutable?
Is oracle java 11 free?
What is a stringbuffer?
Is assembly language a low level language?
What is better- service oriented or batch oriented solutions?
What is composition in java?
What does system out println () do?
What is variable and rules of variable?
How to sort list of list in java?
What happens to the Exception object after handling an exception?
What is immutable state?
How arrays are stored in memory in java?
What is pojo class in java?
Can we serialize singleton class?