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 |
JVM is platform independent or depeneded?
What are conditionals and its types?
when a servlet sends request for first time it uses the follwing methods a)init b)doget() c)dopost() d)service
What are the rules for variable declaration?
What is empty list in java?
What is the difference between Stream Reader and Stream Writer?
What is string length in java?
Why can't we make a class private in java?
What is the purpose of declaring a variable as final?
Can we convert stringbuffer to string?
What is difference between protected and private?
What is java developer skills?