Answer Posted / 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 |
Post New Answer View All Answers
What is java and its types?
Which java collection does not allow null?
How do you sort a list in java?
When should we create our own custom exception classes?
Can we write multiple catch blocks under single try block?
What is a vector in java?
What is java jit compilers?
Tell me how many ways are there to initialise an integer with a constant.
What is the difference between JVM and JRE?
Which data type is class in java?
Is ++ operator is thread safe in java?
Is class is a data type?
What is == in java?
Is 64bit faster than 32 bit?
What is a lightweight component?