Can an unreachable object become reachable again?

Answer Posted / javadreams

String objects are immutable and are placed in a different
pool called as String constant pool. So whenever users try
to create new string object jvm looks out for this pool and
returns the reference for the string object.

So this could be one of the means of getting access to
unreachable string object .

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Will minecraft java be discontinued?

644


Is string a wrapper class?

512


explain autoboxing in java?

593


What is singleton math?

569


Explain jdk, jre and jvm?

567






what is function overloading in java?

696


How does singleton class work?

524


What is meant by method overriding?

538


Why java is considered dynamic?

748


Can we sort list in java?

598


What is a void in java?

580


What is tostring () method?

540


What about anonymous inner classes in java?

559


Is alive method in java?

504


What is the use of optional ?

562