How to re-get an object that is collected by garbage
collector?



How to re-get an object that is collected by garbage collector?..

Answer / 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

More Core Java Interview Questions

why to use transient variables when static variables can be used for Serialization

4 Answers  


What is the size of int in 64-bit jvm?

0 Answers  


What is JDBC Driver interface?How can you retrieve data from the ResultSet

0 Answers   CTS,


Why do we need data structure in java?

0 Answers  


What is the use of math abs in java?

0 Answers  






What is a class instance variable?

0 Answers   Tech Mahindra,


What is a data structure java?

0 Answers  


Does java initialize arrays to zero?

0 Answers  


What are latest features introduced with java 8?

0 Answers  


Can we execute a program without main() method?

0 Answers  


How can we pass argument to a function by reference instead of pass by value?

0 Answers  


what is wrapper class and its uses?

2 Answers  


Categories