🐍 R4R MCQs
Home
New MCQS
MCQS
Articles
Contact
🧪 Java/J2EE MCQ Quiz Hub[Mock Test]
Exception Handling
Choose a topic to test your knowledge and improve your Java/J2EE skills
1. Exception in Java?
an error event that can happen during the execution of a program and disrupts it’s normal flow
Checked Exceptions
Unchecked Exceptions
All
2. throw and throws keyword in Java?
Both are same .
Both are used to handle Errors only .
Both can be used for handle Checked and unchecked exception.
None
3. Which class is the parent of all exceptions in Java?
Exception
Throwable
Error
Runtime
4. Which of the following is a Cheked Exception in Java?
NullPointerException
IOException
ArrayIndexOutOfBoundsException
AritgmeticException
5. What is the main diffrence between Exception and Error in Java?
Exception is serious problems, While Errors are minor issues.
Errors serious problems -can't handle, Exceptions are conditional problems -can be handle
Both are same
Exception are JVM issue, Errors are Runtime Issues can be handle by code.
Submit