java garbage collector? , JAVA Programming

Each time an object is operated in Java, it goes into the area of memory named as heap. The Java heap is named the garbage collectable heap. The garbage collection may not be forced. The garbage collector applies in low memory situations. When it runs, it removes the memory allocated by an unreachable object. The garbage collector gives on a low priority daemon thread. You may simply ask the garbage collector to collect garbage by calling System.gc() but you can't handle it.

 

414_Untitled.png

 

An object's life has no meaning unless something has papered to it. If you can't handle it then you can't ask it to do anything. Then the object becomes unreachable and the garbage collector will noted it out. Java automatically reads all the unreachable objects periodically and removes the memory consumed by those unreachable objects to be needed by the future reachable objects.

 

Posted Date: 7/25/2012 2:55:30 AM | Location : United States







Related Discussions:- java garbage collector? , Assignment Help, Ask Question on java garbage collector? , Get Answer, Expert's Help, java garbage collector? Discussions

Write discussion on java garbage collector?
Your posts are moderated
Related Questions
These applications are like any Java application. They are made up of not many classes, each performing a particular purpose within the application. But these classes are configure

The non-final functions are clone (), finalize (), toString (), equals () , hashCode () and. The other methods like wait (), getClass (), notifyAll (), notify () etc are final

Explain the term array and Scope of Variable? Defining the space in that a variable is effective is known as describing the scope of a variable. A variable can be either local

The design of the website will be left to the individual student. The website must be written only in xml, displayed in xhtml using transforms and xsl for styling elements. Javascr

Preventing Applet Based Social Engineering Attacks To help avoid this, Java applet windows are specifically labeled as such along with an ugly bar that says: "Warning: Applet W

What is the purpose of garbage collection in Java, and when is it used? The purpose of garbage collection is to identify and discard objects that are no longer required by a pr

Differentiate between SMTP and POP3 server? SMTP (Simple Mail Transfer Protocol) is a protocol used to send and receive eMail messages over a TCP/IP network. While POP3 (Post

The last exercise of each assignment will be continuous from assignment to assignment and will have the goal of building an e-store website by the end of the course. Date & Tim

How to Passing Parameters to Applets ? Parameters are passed to applets in NAME=VALUE pairs in tags among the opening and closing APPLET tags. Inside the applet, you read th

Each time an object is operated in Java, it goes into the area of memory named as heap. The Java heap is named the garbage collectable heap. The garbage collection may not be force