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
Is zero a positive integer?
What are new features introduced with java 8 ?
Which of the classes will have more memory allocated?
Which language is java?
What is the difference between the jdk 1.02 event model and the event-delegation model introduced with jdk 1.1?
What is merge sort in java?
Can a final variable be null?
Which class should you use to obtain design information about an object in java programming?
Why we go for collections in java?
What are the important features of Java 9 release?
What is the size of arraylist in java?
Can a private method be declared as static?
What is the use of object and class classes?
Convert a BST into a DLL and DLL to BST in place.
Explain access specifiers?