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
How can I create a simple Caesar cipher using if-else statements?

I need Java coding Need to develop a website. Require Java coder's urgently. Skills required: HTML, Graphic Design, Java, PHP, Website Design

Please submit your answers     In this homework, we are going to generate Java Virtual Machine codes by processing the abstract syntax tree constructed from the parsing process

Explain abstract method in java? Java permits methods and classes to be declared abstract. An abstract method is not actually implemented in the class. It is merely declared th

Develop Student Portal Project Description: Technology to be used: Java, Portlets, Liferay, functions in Oracle DB, Boostrap. We need develop two pages, a header and foote

how to write method overriding and example programe

Complete Back end and Front End Development Project Description: This work is a part of ongoing project. The need is to prepare and integrate the web part of this project.

What Can an Applet Do? An applet can: • Draw pictures on a web page • Create a new window and draw in it. • Play sounds. • Receive input from the user by the keyboard or

.java coding for linear programming

What can you do with an exception once you've caught it? 1. Fix the difficulty and try again. 2. Do anything else instead. 3. Exit the application along with System.exit() 4