Answer Posted / nashiinformaticssolutions
A collection of strings in Java's Heap memory is referred to as Java String Pool. In case you try to create a new string object, JVM first checks for the presence of the object in the pool. If available, the same object reference is shared with the variable, else a new object is created.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What do you mean by formatting?
Explain jvm, jre, and jdk?
Which of the following classes will have more memory allocated?
Is null false in java?
Do extraneous variables affect validity?
Is an empty arraylist null?
What is finalize method?
What is the size of a string in java?
Is null an object java?
Explain thread in java?
What is the importance of finally block in exception handling?
What is default locale java?
What about member inner classes?
What do you understand by copy constructor in java?
What is dot operator?