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 |
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); } }
How do you clear an arraylist in java?
How does hashset works in java?
Difference between the paint() and repaint() methods?
What is thread safe singleton?
What are the access modifiers in java?
What is a line break?
Write a code to create a trigger to call a stored procedure
These static constructors are correct ? class A { statc intA() { } static A(int x,int y) { } static A(int x) { } }
What are the 6 functions?
Explain about field hiding in java?
Is null == null in java?