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 the difference between checked exception and unchecked exception?
How does hashset works in java?
What is string made of?
Can we use different return types for methods when overridden?
What is string in java with example?
What classes of exceptions may be thrown by a throw statement?
Explain when noclassdeffounderror will be raised ?
What is java ceil?
What are the files generated after using IDL to java compiler?
What is static and final keyword in java?
What is the main advantage of passing argument by reference?
Which data type is a class in java?
What is variable and constant explain with example?
What is the synonym of string?
Difference between arraylist and hashset in java?