When garbage collector invokes object?s finalize() method?
Answers were Sorted based on User's Feedback
Answer / sameer
First the object has become unreachable
second the finalize() method call
third the object collect by garbage
| Is This Answer Correct ? | 3 Yes | 0 No |
when it detects vthat the object has become unreachable
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / ravikiran(aptech mumbai)
before the unused objects ges garbage collected
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / saravanan
unreachable object opportunity to perform the cleaning
process before garbage collect.
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / rana.ankur
garbage collector ie demon thread invokes finalize method
to give the last chance to object to save it resorces and
data
| Is This Answer Correct ? | 0 Yes | 0 No |
How the elements are organized in CardLayout?
What is the difference between arraylist and hashset in java?
What is sorting algorithm in java?
we have syntax like for(int var : arrayName) this syntax is to find whether a number is in the array or not.but i want to know how to find that number's location.
what is the difference between Cpp And Java
How do you declare an infinite loop?
What method is used to know the status of Checkbox(i.e it is checked or unchecked)?
what is the difference between Object Based Language and Object Oriented Language?
What is difference between overloading and overriding in java?
what is interface in java? Explain
What are the types of arrays in java?
What are drawbacks of singleton class?