. Explain Java String Pool.

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


Please Help Members By Posting Answers For Below Questions

What is your platform?s default character encoding and how to know this?

2006


Can we cast any other type to boolean type with type casting?

738


Why declare Main() method as a static in java ?

815


What is application tier?

777


what is the difference between Object Based Language and Object Oriented Language?

789


What is private public protected in java?

806


Can we override protected method in java?

810


What happens if an exception is not handled in a program?

847


Can we make the abstract methods static in java?

798


What is bool mean?

750


What is square root in java?

785


What's the base class of all exception classes?

788


What do you mean by JVM?

793


Which is bigger float or double?

753


How to split a string in java?

876