Memory management in JAVA

Answers were Sorted based on User's Feedback



Memory management in JAVA..

Answer / srikanth

garbage collector ie gc is responsible for Memory
management in JAVA

whenever heap memory is full jvm makes list of objeects
which is unrefered and it calls finalize()method on that
method to cleanup resourse which is hold by it and finaaly
gc()method is invoked finally to relese the resource

Is This Answer Correct ?    29 Yes 1 No

Memory management in JAVA..

Answer / jaseer v

Garbage collector

Is This Answer Correct ?    21 Yes 4 No

Memory management in JAVA..

Answer / guest

memory management can be maintained by JVM .It allocates space
in heap area

Is This Answer Correct ?    6 Yes 1 No

Post New Answer

More Core Java Interview Questions

What is the difference in between cpp and java? Can u explain in detail?

0 Answers  


What is the simpletimezone class in java programming?

0 Answers  


What is qms certification?

0 Answers  


What is immutable class? how to make a Class explicitly "Immutable"?Wap to make a class explicitly immutable.

3 Answers  


Explain polymorphism citing an example.

0 Answers   Amazon,






What is the purpose of default constructor?

0 Answers  


Can list be final in java?

0 Answers  


I Have a class abstract with one abstract method, so that method should override in the subclass, but i dont want to override, if i am not override what will happen? If compilation will occur then i dont want to give compilation error, then what we need to do??? See the sample program. public abstract class AbstractExample { public abstract void sampleMethod(); } public class AbstractExampleImple extends AbstractExample { }

2 Answers   Mphasis,


Can we start a thread twice in java?

0 Answers  


What do you mean by constructor?

0 Answers  


What is ph and buffers?

0 Answers  


why interfaces are faster than abstract classes?

4 Answers  


Categories