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 |
How can we find size of the object ?
Explain tree set and its features?
Why volatile is used in java?
Why Java is called as purely platform independent..? Explain briefly..dont Give regular answers Explain with your own example..?
Explain about transient variables in java?
What is the default size of arraylist in java?
What is a parameter in a function?
If system.exit (0); is written at the end of the try block, will the finally block still execute?
What are the advantages of java?
What are functions in java?
Why we can not force Garbage Collection?
how session will be expired ?