How does the garbage collector works in java?
Answer / Girish Chandra Sharma
The Java Garbage Collector (GC) is a memory management component that automatically frees up memory occupied by objects which are no longer in use. When an object is created, it occupies memory space. If the object is not referenced anymore, then it becomes eligible for garbage collection. The JVM's garbage collector periodically scans the memory and identifies such unreferenced objects (referred to as reachable objects), and then frees up their memory space by marking them for deletion.
| Is This Answer Correct ? | 0 Yes | 0 No |
How can you debug the Java code?
Why collection doesn’t extend cloneable and serializable interfaces?
Why we used break and continue statement in java?
Why javac is not recognized?
Explain inner classes ?
Explain implementation and how is it different from conversion?
String is a immutable objects . it means that string does not change........... But it will be chang......... { String s="kapil"; String s1="raj"; String s=s1; then print(.......) The String has been changed .. how it is possible and why its called immutable objects
What is the purpose of having the concept of overloading?
What are non-access modifiers?
What are wrapper classes?
can java object be locked down for exclusive use by a given thread? : Java thread
What is the difference between normal report & matrix report?