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
Create a class to implement the ArrayList collection. The name should be YourFirstNameArrayList; for example if I were creating the class then I would call it WaynesArrayList. Do

Byteland county is very famous for luminous jewels. Luminous jewels are used in making beautiful necklaces. A necklace consists of various luminous jewels of particular colour. Nec

This program will help you start doing GUI programming, and is a good example of 2D arrays. Mine Sweeper is a classic game that is played on a 2D grid of cells. At the beginning of

Implement a program to query and update the text database for a library using a client/server model allowing multiple clients safe access to the database, and using a producer-cons


Prepare a Game in Corona (for Android and IOS) Project Description: We are looking to prepare a game for mobile platform similar to Zombie Smasher for iOS and Android. Eve

Develop a School java project Project Description: Programming java, threads. Not so hard but requires knowledgeSkills required: Java

The purpose of this assignment is to give you practice working with one dimensional arrays. It will also introduce you to one of the oldest mathematical algorithms in the world. No

Why hub is used in networks? Hub is networking equipment and a device that connects various computers to form a network. In a network the NIC translates the message within elec

Question: A new software engineer has joined Axistex Ltd. The systems analyst informs him that the organisation works with different operating system. The HR department works w