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
What are exceptions
Explain the importance of join() method in thread class?
Can we pass null as argument in java?
What is a wrapper method?
What is difference between fail-fast and fail-safe?
How does compareto work in java?
Explain about public and private access specifiers?
What is meant by collection in java?
Can we declare register variable as global?
How do you insert a line break?
What is double checked locking in singleton?
What is Java Annotations?
I want to store more than 10 objects in a remote server? Which methodology will follow?
What is backdrop?
What are the advantages of java inner classes?