EPAM Systems Interview Question

Can you explain how the JVM and Garbage Collector works? What are the differences between Java 8 and 11?