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 |
Why string is not a wrapper class?
What is the default initialized value of String type variable?
AWT event listeners extends what interface?
Is it compulsory for a try block to be followed by a catch block in java for exception handling?
Does Java support multiple Inheritance?
class A { public void disp(int a,int b) { System.out.println("hai"); } } class B { public void disp(int a,int b,int c) { System.out.println("hai"); } } above program is overloading or overriding?
Is java se open source?
How do you sort an array in java?
Can a java program have 2 main methods?
What are synchronized methods ?
How can we achieve IPC in JAVA?
Can we override constructors?