What is garbage collection in Java, and how can it be used ?
Answer Posted / sivadasan
Garbage collection is a thread, that runs to reclaim the
memory by destroying objects which object is cannot be
referenced anymore.
Deleting Dynamically created objects from the memory.
Finalize method used to achieve garbage collection.
By using Runtime.gc() or System.gc() the object will be
garbage collected.
Is This Answer Correct ? | 30 Yes | 14 No |
Post New Answer View All Answers
What is constant in programming?
What are the different ways to handle exceptions?
What is structure of java heap? What is perm gen space in heap?
How do you convert int to char in java?
Why does java not support operator overloading?
Which variable is the independent variable?
How can we create a thread in java?
Which methods are used during serialization and deserialization process?
Java openings 3 - 5 years, Lnt Infotech. requirements - core java, J2ee, struts, hibernate Interview Date:- 19 March 2011 Time:- 9:00 AM to 12:00 Pm Interview Location - L & T Infotech, Manapakkam, Chennai Refererral PS NO:- 291649 (Please mention this when u fill the form only then u will be considered for interview) Documents Required:- Latest Resume, Photograph and last 3 payslips Mail me on vasan2211@gmail.com once u appear for interview
Hi Anyone know the model / questions of the Federal bank sample questions for the post of Specialist Officers - Programmers. Please post if anyone have..
Can this keyword be used to refer static members?
Write a method that will remove given character from the string?
Can an anonymous class be declared as implementing an interface and extending a class in java programming?
What is args length in java?
What is entry in java?