Grokking Java Interview Questions
Vote

0% completed

​

Generations and Collectors: G1, ZGC, and Others

The objects of an online store stay in use for very different lengths of time:

  • An iterator over the items of a cart is used during one loop.
  • The objects of one web request are used until the response is sent.
  • A cart is used for several minutes.
  • The price list is used until the program ends.

A collector that treats these four groups in the same way repeats a large amount of work. The questions below cover the division of the heap by age, the kinds of collection that follow from it, the default collector G1, and the choice of another one.

.....

.....

.....

Like the course? Get enrolled and start learning!

Reading Progress

0%


Vote for new content