가장 많이 묻는 면접 질문과 답변 & 온라인 테스트
면접 준비, 온라인 테스트, 튜토리얼, 라이브 연습을 위한 학습 플랫폼

집중 학습 경로, 모의고사, 면접 준비 콘텐츠로 실력을 키우세요.

WithoutBook은 주제별 면접 질문, 온라인 연습 테스트, 튜토리얼, 비교 가이드를 하나의 반응형 학습 공간으로 제공합니다.

Prepare Interview

Java Garbage Collection 면접 질문과 답변

Ques 1. What is Garbage Collection in Java?

Garbage Collection is the automatic process of reclaiming the runtime unused memory by destroying the objects that are no longer reachable or referenced by the program.

도움이 되었나요? Add Comment View Comments
 

Ques 2. Explain the purpose of the finalize() method.

The finalize() method is called by the garbage collector before reclaiming the memory occupied by an object. It can be overridden to perform cleanup operations before an object is garbage collected.

도움이 되었나요? Add Comment View Comments
 

Ques 3. What is the role of the JVM (Java Virtual Machine) in garbage collection?

The JVM is responsible for managing the memory, including garbage collection. It runs the garbage collector to identify and reclaim unused memory.

도움이 되었나요? Add Comment View Comments
 

Ques 4. Name the different types of garbage collectors in Java.

The types of garbage collectors in Java include Serial Garbage Collector, Parallel Garbage Collector, CMS (Concurrent Mark-Sweep) Garbage Collector, and G1 (Garbage-First) Garbage Collector.

도움이 되었나요? Add Comment View Comments
 

Ques 5. What is the purpose of the Young Generation in the Java heap?

The Young Generation is the part of the heap where new objects are created. It is designed for short-lived objects, and garbage collection occurs more frequently in this generation.

도움이 되었나요? Add Comment View Comments
 

Most helpful rated by users:

Copyright © 2026, WithoutBook.