What is the purpose of garbage collection in java, and when is it used?
Answer / Kum Anshu Gupta
"Garbage Collection (GC) in Java is a feature that automatically frees memory by removing objects that are no longer needed. It is used to manage memory efficiently and prevent potential OutOfMemoryErrors during program execution. GC is triggered when the JVM determines that memory usage exceeds a certain threshold."n
| Is This Answer Correct ? | 0 Yes | 0 No |
What are the two ways of implementing multi-threading in java?
Explain about arraylist?
Any one can explain how the inerface uses in java. give with example.
What is difference between path and classpath variables?
whats is inheritance?
15 Answers CTS, HCL,
Is Java is 100% pure OOPS? Explain?
What is an exception? difference between Checked and Unchecked exception in Java
1 Answers SkillGun Technologies,
What is Recursion Function?
Define how does a try statement determine which catch clause should be used to handle an exception?
What is a java string?
What is the map interface in java programming?
What is meant by inheritance and what are its advantages?