What part of memory - Stack or Heap - is cleaned in the garbage collection process?
Answer / nashiinformaticssolutions
On Heap memory, garbage collection is employed to release the memory used by objects with no references. Every object created in the Heap space has access to the entire application and may be referred to from anywhere.
| Is This Answer Correct ? | 0 Yes | 0 No |
Write a program to check for a prime number in java?
What is string intern in java?
What is anagram of a string?
Can an interface extend a class?
How would you convert bytes to string?
What is java virtual machine and how it is considered in context of java’s platform independent feature?
What is the difference between a choice and a list?
What are different ways of object creation in java ?
Can we sort hashmap in java?
Why Wait and notify are kept in Object class although they are used only with Thread Class
2 Answers Global Logic, Saksoft,
How list contains works in java?
How many types of memory areas are allocated by JVM in java?