☕ Java errors

Java and JVM exceptions: NullPointerException, ClassNotFoundException, OutOfMemoryError.

CodeErrorWhat it means
ClassNotFoundException java.lang.ClassNotFoundException / NoClassDefFoundError The JVM couldn’t find a class on the classpath at runtime.
NullPointerException java.lang.NullPointerException Code called a method or accessed a field on a reference that is `null`.
OutOfMemoryError java.lang.OutOfMemoryError: Java heap space The JVM ran out of heap memory and garbage collection couldn’t free enough.
ConcurrentModificationException java.util.ConcurrentModificationException A collection was modified while being iterated (even in a single thread).