When the JVM runs out of memory, which exception will be thrown?
Answer & ExplanationOption: [B]
When a program is stopped due to lack of memory then OutOfMemoryError is thrown.
Answer & ExplanationOption: [B]
When a program is stopped due to lack of memory then OutOfMemoryError is thrown.