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
Explain exception chaining in java?
What is java and its types?
How much ram can a 64 bit processor theoretically?
Can you use this() and super() both in a constructor?
Which containers use a flowlayout as their default layout in java programming?
Can we serialize singleton class?
What is runtime polymorphism or dynamic method dispatch?
What are the object and class classes used for?
Is a case study a method or methodology?
What is string in java? String is a data type?
How do you override a private method in java?
What is an argument in java?
what do you understand by the term string with respect to java?
What are use cases?
What is the output of the below java program?