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
Explain about varargs in java?
Do I need java on my pc?
What are streams in java 8?
How would you dynamically allocate memory to an array?
What do you understand by looping in java? Explain the different types of loops.
What is the default value of the local variables?
Give the difference between the println method and sqrt method?
What is generic class?
what do you understand by synchronization? : Java thread
Explain about collection interface in java?
How many types of voids are there?
Can we have any other return type than void for main method?
Why 1 is not a prime number?
Which is better list or arraylist in java?
Can a class have an interface?