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
Why to use nested classes in java?
How to find the largest value from the given array.
how can you take care of mutual exclusion using java threads? : Java thread
What is the size of an array?
What is the difference between JDBC 1.0 and JDBC 2.0?
What is set string?
What is the transient keyword?
What is the difference between checked exception and unchecked exception?
What are the two basic ways in which classes that can be run as threads may be defined?
What is the tradeoff between using an unordered array versus an ordered array?
How will you communicate between two applets?
What is the difference between path and classpath variables?
Can a method be overloaded based on different return type but same argument type?
Can a constructor be protected?
What does mean in regex?