Questions et réponses d'entretien les plus demandées et tests en ligne
Plateforme d'apprentissage pour la preparation aux entretiens, les tests en ligne, les tutoriels et la pratique en direct

Developpez vos competences grace a des parcours cibles, des tests blancs et un contenu pret pour l'entretien.

WithoutBook rassemble des questions d'entretien par sujet, des tests pratiques en ligne, des tutoriels et des guides de comparaison dans un espace d'apprentissage reactif.

Preparation a l'entretien

Java Garbage Collection Questions et reponses d'entretien

Question 11. What is the Eden Space in the Young Generation of the Java heap?

The Eden Space is the part of the Young Generation where new objects are initially allocated. Objects surviving garbage collection in Eden are moved to the Survivor Spaces.

Est-ce utile ? Ajouter un commentaire Voir les commentaires
 

Question 12. Explain the purpose of the Survivor Spaces in the Young Generation.

The Survivor Spaces (S0 and S1) in the Young Generation are used to hold objects that survive one garbage collection cycle in the Eden Space. Objects can be promoted to the Old Generation from the Survivor Spaces.

Est-ce utile ? Ajouter un commentaire Voir les commentaires
 

Question 13. What is the role of the Old Generation in the Java heap?

The Old Generation is the part of the heap that holds long-lived objects. Objects that survive multiple garbage collection cycles in the Young Generation are eventually promoted to the Old Generation.

Est-ce utile ? Ajouter un commentaire Voir les commentaires
 

Question 14. Explain the concept of garbage collection pause times.

Garbage collection pause times refer to the periods during which application threads are stopped while the garbage collector performs its tasks. Minimizing pause times is essential for maintaining application responsiveness.

Est-ce utile ? Ajouter un commentaire Voir les commentaires
 

Question 15. What is the difference between garbage collection and memory leak?

Garbage collection is the process of automatically identifying and reclaiming unused memory, while a memory leak occurs when the application fails to release memory that is no longer needed, leading to increased memory consumption over time.

Est-ce utile ? Ajouter un commentaire Voir les commentaires
 

Les plus utiles selon les utilisateurs :

Copyright © 2026, WithoutBook.