6
When the JVM runs out of memory, which exception will be thrown?
Answer: Option [B]
When a program is stopped due to lack of memory then OutOfMemoryError is thrown.
Answer: Option [B]
When a program is stopped due to lack of memory then OutOfMemoryError is thrown.
Answer: Option [A]
In Java throw keyword is used to handle exception programmatically.
Article and Schedule Quiz | Start Test! |
Answer: Option [D]
IOException is thrown when I/O operation is failed.
Answer: Option [D]
Answer: Option [B]
Throwable is a superclass of all Error and Exception classes.