Memory management in JAVA
Answers were Sorted based on User's Feedback
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 |
Answer / guest
memory management can be maintained by JVM .It allocates space
in heap area
| Is This Answer Correct ? | 6 Yes | 1 No |
What is the purpose of using bufferedinputstream and bufferedoutputstream classes?
When does Exception occurs?
How does singleton class work?
what is webservices?
What is used of static keyword in java?
What is integer size in java?
What is an object in java and how is it created?
What is escape analysis algorithm in JVM and how garbage collection actually worked n how it transfer the objects from one kind of space to other?
what is difference between business delegate and data access object(dao)? in java?
what is the need of the Ajax?
What are the benefits of java?
what is the difference between sleep() and Wait()?