State about the garbage collection, JAVA Programming

Assignment Help:

Explain garbage collection.

Java uses garbage collection to free the memory. By cleaning those objects which is no longer reference by any of the program. Step involve in cleaning up garbage collection:

Garbage Object Collection: first step is to collect and group all those object which are no more reference with any of the program. We can use different methods to collect garbage object like using runtime.gc() or system.gc().

Run Finalize method: To free up those object that is collected by garbage collector java should execute the Finalize method to delete all those dynamically created object.

 


Related Discussions:- State about the garbage collection

Jumps in loops, explain jumps in loops and explain labelled loops

explain jumps in loops and explain labelled loops

Draw out a uml class diagram, Question: (a) Draw out a UML class diagra...

Question: (a) Draw out a UML class diagram that captures the following information: An Employee is a kind of Person. An ATM is a kind of Machine. Both an Employee and an ATM

What is meant by semantic error, What is meant by semantic error? Occur...

What is meant by semantic error? Occur while a statement executes and has an effect not intended through the programmer and Frequently times occur only in unusual & infrequent

Array method, frequently used java array method

frequently used java array method

Collection, how would I become expert in collection framework

how would I become expert in collection framework

Use the constructor, Can we use the constructor, instead of init(), to init...

Can we use the constructor, instead of init(), to initialize servlet? Ans) Yes. Of course you can use the constructor instead of init(). There's nothing to stop you. But you sho

Write a note on java beans, Question 1 Explain the data types in Java ...

Question 1 Explain the data types in Java Question 2 Write a note on StringBuffer Question 3 What is Exception? Question 4 Write a note on stream classes Questi

Prob, hi there I have some problem on java .. can u do it for me

hi there I have some problem on java .. can u do it for me

What is an introduction in aop, An introduction permits the user to add new...

An introduction permits the user to add new methods or attributes to an existing class. This can then be explained to an existing class without having to change the structure of th

What are the services given by the rmi object, RMI Object services: In...

RMI Object services: In addition to its remote object architecture, RMI gives some basic object services, which may be needed in a distributed application. 1.  Object namin

Write Your Message!

Captcha
Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd