Hard
The Garbage Collector G1(or Garbage First) is a GC that organizes the heap in a way
Author: LoïcStatus: PublishedQuestion passed 335 times
Edit
4
Community Evaluations
Dumitru
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 :)
Loïc
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.
Dumitru
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
Similar QuestionsMore questions about Java
13
How many times is the condition `(a++ < 15)` evaluated in the following code?
```java
int a = 3;
while (a++ < 15) {
if ((a++ % 5) == 0)
break;
}
```10
A monitor in Java9
Serialization can be customized with the Externalizable interface8
What does the final keyword mean in front of a method in Java?8
What "design pattern" makes it possible to offer a means of treating the elements of a tree without worrying about the course?