It occurs when the JVM cannot allocate more memory for an object because sufficient memory is unavailable.