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

Why to use nested classes in java?

589


How to find the largest value from the given array.

528


how can you take care of mutual exclusion using java threads? : Java thread

609


What is the size of an array?

553


What is the difference between JDBC 1.0 and JDBC 2.0?

2715






What is set string?

596


What is the transient keyword?

634


What is the difference between checked exception and unchecked exception?

530


What are the two basic ways in which classes that can be run as threads may be defined?

552


What is the tradeoff between using an unordered array versus an ordered array?

665


How will you communicate between two applets?

632


What is the difference between path and classpath variables?

532


Can a method be overloaded based on different return type but same argument type?

547


Can a constructor be protected?

535


What does  mean in regex?

571