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


Please Help Members By Posting Answers For Below Questions

What is output buffer?

574


Write a program in java to calculate the difference between the sum of the odd level and even level nodes of a binary tree.

541


Differences between traditional programming language and object oriented programming language?

576


What super () does in java?

494


What are the different types of inheritance in java?

537






What is the base class of all classes?

582


What is the use of a copy constructor?

579


How can I right-justify a string?

635


What does t in java mean?

543


What is the concatenation operator in java?

582


What is getclass () getname () in java?

683


Why does my function print none?

528


How do you use compareto in java?

569


Explain different forms of polymorphism?

663


How can we create an immutable class in java?

591