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
extending thread class or implementing runnable interface. Which is better? : Java thread
Give the hierarchy of inputstream and outputstream classes.
Mention a package that is used for linked list class in java.
What is binary search in java?
How do you create an array in java?
How do you add an element to a hashset in java?
What is the difference between static and global variables and also define what are volatile variables?
What is sortedset in java?
How can a gui component handle its own events?
Mention some interfaces implemented by linked list in java.
Explain what are final variable in java?
What is string example?
What is the difference in between cpp and java? Can u explain in detail?
what is collatration?
What are the different approaches to implement a function to generate a random number?