How to re-get an object that is collected by garbage
collector?
Answer Posted / ravikiran(aptech mumbai)
once the object get garbage collected it's no longer
available.so before garbage collected inside the finalize()
method make the object serialze and save it into an output
stream
| Is This Answer Correct ? | 3 Yes | 2 No |
Post New Answer View All Answers
Differentiate between vector and array list.
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?
How can we make sure main() is the last thread to finish in java program?
What is default size of arraylist in java?
How does linkedhashmap work in java?
What are the different ways to handle exceptions?
Is intellij better than eclipse?
How listener identify that the event came from a particular object?
What are meta-annotations?
what is abstract class in Java?
What is mysql driver class name?
Difference between a class and an object?
What are the restrictions imposed on method overriding?
Can you pass by reference in java?
What are the drawbacks of singleton class?