Pregunta de entrevista de EPAM Systems

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