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 |
What is class forname used for?
What is boolean in java?
Why there are some null interface in java? What does it mean?
Why lambda expression is used in java?
What is command line argument in java?
Life Cycle of Thread
What is the difference between overloading and overriding a function?
13 Answers eG Innovations, Infosys, TCS,
What are the advantages of passing this into a method instead of the current class object itself?
What is a marker interface?
Urgent requirement of JAVA/.NET/QA in a CMMI level3 MNC for Pune location.
public class Test { public static void main(String ar[]) { Integer a = 10; Integer b =10; Integer c = 145; Integer d = 145; System.out.println(a==b); System.out.println(c==d); } }
how a programmer confirms that the data submitted has been succesfully inserted into the database(either oracle or my sql).. How a programmer confirm if there is any problem with the program he wrote for insertion