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 are thread groups?
What are the rules for variable declaration?
Can we sort hashmap in java?
What are the legal parameters?
how to write a server program and sending the mails to the server using smtp protocol please help me
What are the different types of data structures in java?
If a variable is declared as private, where may the variable be accessed?
What is charat ()?
What is the purpose of garbage collection in java?
What are the data types supported by java?
Define "Access specifiers" in java.
What is the function of java?
What is constructor chaining and how is it achieved in java?
What is the inheritance?
Explain illegalmonitorstateexception and when it will be thrown?