Can an unreachable object become reachable again?
Answers were Sorted based on User's Feedback
Answer / shadow
An unreachable object may become reachable again. This can
happen when the object's finalize() method is invoked and
the object performs an operation which causes it to become
accessible to reachable objects....!
CHHAYA
| Is This Answer Correct ? | 10 Yes | 1 No |
Answer / 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 |
When you say String is immutable, what do you mean by that? Say I have String s = "Ness" s= s+"Technologies"; What will happen? If the value gets appended, then what is the meaning of immutable here?
What is a method signature java?
What is javac_g?
How many ways can you break a singleton class in java?
Explain some best practices you would apply while using collection in java?
what is the difference between a threads start() and run() methods? : Java thread
When will we use class loader?
what is java
Difference between the paint() and repaint() methods?
What is the exception hierarchy in java?
is JVM platform dependent or independent..?
11 Answers IBM, Tech Mahindra,
What is JVM ?
4 Answers Phantom Technologies, TCS,