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 does t in java mean?
What are java packages?
What is null mean in java?
What is the difference between path and classpath variables?
What do you mean by inner class in java? Explain
Can finally block be used without a catch?
Is list ordered in java?
What are variable arguments or varargs?
What about interrupt() method of thread class ?
What are strings in physics?
What is charat ()?
Define jit compiler?
What is the protected method modifier?
Is char a data type in java?
How to make a read-only class in java?