| Which exception is thrown when java is out of memory?
Choose the correct option from below list
(1)MemoryError
(2)OutOfMemoryError
(3)MemoryOutOfBoundsException
(4)MemoryFullException
Answer:-(2)OutOfMemoryError
Note:-A common use for these flags is when you encounter a java.lang.OutOfMemoryError. | | |