+1 vote
by (1.6k points)

1 Answer

0 votes
by (524 points)
selected by
Best answer

An OutOfMemory is an exception thrown by the Java Virtual Machine (JVM) because it needs to allocate memory for a (new) object, but insufficient memory is available for the object. 

Welcome to CodersEditor Q&A, where you can ask questions and receive answers from other members of the community.