Online GK Series

This site is dedicated to the aspirants of competitive exams SSC, UPSC, Railways, Postal Assistants, Bank, GATE and NET

3,00,000 Jobs Waiting For You

Q.

When the JVM runs out of memory, which exception will be thrown?

A MemoryBoundException
B OutOfMemoryError
C OutOfRangeException
D NullReferenceException
Answer & Explanation
Option: [B]

When a program is stopped due to lack of memory then OutOfMemoryError is thrown.

Your Valuable Comments Please...

Useful Computer Science EBooks