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 |
Explain inner classes ?
What is use of arraylist in java?
Interface A { String test(); } Interface B { int test(); } Create a class AB which must implements both A & B interfaces.
How do you sort a string in alphabetical order in java?
Can Applet have constructors?
How many ways can an argument be passed to a subroutine?
3 Answers Technological University of the Philippines,
What is the difference between throw and throws? What is the similarity between try and throw?
What is bool mean?
Can we serialize static variables in java?
What is a boolean structure?
FOR EXAMPLE WE R HAVING TWO LIST ELEMENTS ..BOTH LISTS CONTAINS ID,NAME,PLACE ..I NEED TO COMPARE BOTH IDS IN TWO LISTS,IF ID'S R SAME MEANS WE HAVE ADD THE DETAILS(LIKE NAME,PLACE) TO MAP...HOW IS POSSIBLE ?CAN ANY ONE SUGGEST?
what is the purpose of class "Object" which is base class for all classes?