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

can you program for reverse string?

7 Answers   IBM,


How to Sort Strings which are given in List and display in ascending order without using java api.

1 Answers   LIC,


Where will it be used?

0 Answers  


What is string builder in java?

0 Answers  


Explain Public static void main?

2 Answers   IBM, Vetech,






How many types of classes are there in java?

0 Answers  


we cannot create an object of interface but we can create a variable of it

1 Answers  


Is static variable stored in heap?

0 Answers  


Explain the difference between the Boolean & operator and the && operator?

1 Answers  


When should the method invokelater() be used?

0 Answers  


what is bmg file and how to create that files?what will it contailn?

0 Answers   HCL, Probe Services,


what is the final keyword denotes in java?

0 Answers   IBS,


Categories