Sobes.tech
Junior — Middle

How do you distinguish between using an abstract class and implementing an interface in object-oriented programming?

sobes.tech AI

Answer from AI

By default, Java 11 uses the G1 (Garbage-First Garbage Collector) garbage collector.

G1 is a parallel, incremental, and multithreaded garbage collector optimized for large heaps and minimizing pause times. It divides the heap into regions and collects them based on priority, allowing more predictable management of pause times.

To enable G1 by default, use the JVM flag -XX:+UseG1GC.

How do you distinguish between using an abstract… - sobes.tech