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 final keyword in java? Give an example.
What do u mean by method and also contructer in java ?
How does indexof work?
What is the default size of set in java?
What is the type of lambda expression?
Explain about interrupt() method of thread class ?
What invokes a thread's run() method in java programming?
How many bits is a string?
What are drawbacks of singleton class?
why java uses class level type casting ?
What is the difference between Array and Hash Table?
How big is a 64 bit float?