Difficile
Le Garbage Collector G1 (ou Garbage First) est un GC qui organise la heap de manière
Auteur: LoïcStatut : PubliéeQuestion passée 396 fois
Modifier
5
Évaluations de la communauté
Auteur anonyme
28/02/2024
If you read this: https://www.oracle.com/technical-resources/articles/java/g1gc.html
it clearly says generational:
"The Garbage First Garbage Collector (G1 GC) is the low-pause, server-style generational garbage collector for Java HotSpot VM. "
so I do not agree with my grade.
And what the bip means hemispherical region in memory (do we have 3D memory) cmon :)
Auteur anonyme
29/02/2024
It is indeed generational, but it is also hemispheric as each region has the same size and when a collection of a region is done, the remaining objects of the region are copied to a new region and the source region is emptied.
Hemispherical heap region is a GC term used also for the survivors of serial GC and parallel GC so it's in thing in GC world.
Auteur anonyme
29/02/2024
Still you have to admit it is generational. and I insist that hemispherical in memory management has no sens. As hemispherical means half of a sphere. Which suppose we would have only two generations or memory regions would kinda be logical. But we have four according to Oracle: eden, young generation, old and humongous. More to my argument is that I do not find it in Oracle doc pages. Check this too: https://www.oracle.com/technical-resources/articles/java/g1gc.html
10
Une classe Customer a le package com.company.model.12
Un moniteur en Java12
La sérialisation peut être personnalisée avec l'interface Externalizable11
Quel "design pattern" permet d'offrir un moyen de traiter les éléments d'un arbre sans se soucier du parcours?12
Combien d'instances de Integer ne peuvent pas être libérées de la mémoire?16
Combien de fois la condition `(a++ < 15)` est-elle évaluée dans le code suivant ?
```java
int a = 3;
while (a++ < 15) {
if ((a++ % 5) == 0)
break;
}
```11
Que signifie le mot-clé final devant une méthode en Java?