answersLogoWhite

0


Best Answer

I guess you want to talk about the garbage collector feature that Java has.

The garbage collector is an automated program that the Java virtual machine would run once in a while. This program would clean up unused memory to ensure that there is enough memory available for the programs.

you can invoke the garbage collector by calling the system.gc() method but this does not guarantee an invocation of the garbage collector. the JVM may or may not call the GC when we invoke it...

User Avatar

Wiki User

15y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Memorymically and and not reclaming it when it is no longer it is needed in java there is no such problem as there is as garbage collector what is it?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering

How is garbage collection done in c plus plus?

Garbage collection is used to released resources which were previously used by the application(s) which is called garbage collector. Garbage collection allows to prevent memory leaks which are the main problem of old style of programming.


What is the ultimate solution to the problem of garbage?

Deport Dumbo and his ugly wife back to Kenya


What problems are caused by garbage disposal?

The most severe problem with garbage is where to put it. There's a huge pile of garbage in the middle of the Pacific Ocean; New York piles it on barges; garbage dumps get compacted and built on (the Shoreline Amphitheater in Mountain View, California, is on a garbage dump and there are tubes in the ground to release the methane, a major cause of Global Warming). We can only recycle and compost so much garbage. Garbage attracts rats and other disease-carrying vermin. Garbage and littering can also cause animals to suffocate. The chemicals in the pollution cause chemicals to rise into the air causing air pollution.


What is finalize and finalize-and finalized?

The idea of the finalizer method was to do clean up stuff, like releasing IO resource to a database or a file, as this method is called just before the garbage collector removes the object from memory. The problem is that you cannot influence when or IF the garbage collector will clean up your object, so you have no guarantee that the finalize method is ever called. There are even more issues with the finalizer method, the shorty story is to just avoid it and use a "try finally" block instead - closing the resources in the finally block will guarantee that the resources will be released. If you want to know more, I have a free video both about the finalizer method as well as exception handling on my blog (just Google for "Marcus Biel Clean Code Course")


How do you stop excessive crank case pressure on a high compression race engine that already has a crank case evacuation system?

If you have a crankcase evacuation system on it other than a standard PCV valve and breather, such as a vacuum pump and oil separator or header collector EVAC system, and you are still having the problem such as blowing out the dipstick tube and such then you may have another problem such as a bad ring, bad cam bearing, or oiling problem such as leaving the oil pump dry or cracked pick up tube. If you have a crankcase evacuation system on it other than a standard PCV valve and breather, such as a vacuum pump and oil separator or header collector EVAC system, and you are still having the problem such as blowing out the dipstick tube and such then you may have another problem such as a bad ring, bad cam bearing, or oiling problem such as leaving the oil pump dry or cracked pick up tube.

Related questions

Meaning of garbage problem?

anu ang garbage problem


What is garbage problem?

A garbage problem occurs when there is too much garbage generated and causes pollution and possible vermin infestation. A lack of places to dispose of garbage can cause problems.


The garbage disposal problem can best be reduced by?

burning garbage


How is garbage collection done in c plus plus?

Garbage collection is used to released resources which were previously used by the application(s) which is called garbage collector. Garbage collection allows to prevent memory leaks which are the main problem of old style of programming.


What are the current problem in the Philippines?

the garbage /the weather/ and the leader are the biggest problem


Why is garbage a problem in the community?

garbage pollutes the air ,water and contributes to global warming


What are the causes of garbage problem?

pollution and possible vermin infestation


How to solve garbage problem in terms of its effect on the environment?

burn that stuff


Which model has the problem the solution the participants and the opportunities thrown in together?

Garbage can model


How you can solve garbage problem?

by warning the people who throw anywhere not in the proper trashcan...


What environmental problem do reusable lunch kits solve?

The problem of polluting through garbage with plastics and other materials like that.


What is the problem with recycling and why do we need to solve it?

what we can do is, put garbage cans on the sidewalks and put recyling signs on them so the can put any recycling materials in the proper garbage can.