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
What is the final keyword in java?
what is singleton class in java?
What an i/o filter in java programming?
Why is the singleton pattern considered to be an anti pattern?
Is java owned by oracle?
How do you write a scanner class in java?
How can you make sure that your singleton class will always return single instance in multi-threaded environment?
How to run a JAR file through command prompt?
What is a finally block? Is there a case when finally will not execute?
What is a literal coding?
What is the maximum size of array in java?
When is the finalize() called? What is the purpose of finalization?
Why do we use return statement?
What is the advantage of functional interface in java 8?
What are the differences between graph and tree?