what is meant by string pooling?

Answer Posted / gaurav agrawal

dont misguide please, all the string objects created
without new operator are stored in pool which is a space in
memory, if any other object has the same content then a new
object will not be created.

Is This Answer Correct ?    35 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is java lang string?

757


Explain treeset?

847


What are scriptlets?

827


Explain restrictions for using anonymous inner classes?

833


What are multiple inheritances? Is it supported by java?

671


What is difference between final and immutable?

781


Why stringbuilder is not thread safe in java?

792


Why Java doesn’t support multiple inheritance?

815


How does a for loop work java?

776


What are the restrictions imposed on method overriding?

778


What is ph and buffers?

735


What is the declaration statement?

713


Why we used break and continue statement in java?

791


Explain the difference between comparator and comparable in java?

689


What is the purpose of a default constructor?

827