Garbage collection in java?



Garbage collection in java?..

Answer / Kavita Tripathi

Java's garbage collector automatically frees memory occupied by objects that are no longer in use. The JVM performs garbage collection periodically to reclaim and recover the unused memory.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Core Java Interview Questions

10. What is the output of the following Java program? class Main { public static void main(String args[]){ final int i; i = 10; System.out.println(i); } } 10. What is the output of the following Java program? class Main { public static void main(String args[]){ final int i; i = 10; System.out.println(i); } }

0 Answers  


How do you clear an arraylist in java?

1 Answers  


How does hashset works in java?

1 Answers  


Difference between the paint() and repaint() methods?

1 Answers  


What is thread safe singleton?

1 Answers  


What are the access modifiers in java?

1 Answers  


What is a line break?

1 Answers  


Write a code to create a trigger to call a stored procedure

1 Answers  


These static constructors are correct ? class A { statc intA() { } static A(int x,int y) { } static A(int x) { } }

1 Answers   HCL,


What are the 6 functions?

1 Answers  


Explain about field hiding in java?

1 Answers  


Is null == null in java?

1 Answers  


Categories