JavaDeploy
SiteMap
Readers Writers
Java Streams
Java Programming
Java Language
Java Exceptions
«Prev
Next»
Java Language
Packages Interfaces
Java Classes - Quiz
Java Graphics
Java Graphics - Quiz
Java Graphics Conclusion
MultiThreaded Programming
Multithreaded Programming Basics
Thread Significance Assessment
Create Use Thread Class
Implement Runnable Interface
Sleeping Threads
Thread Synchronization
wait notify Methods
Multithreaded Programming - Conclusion
Set Daemon Threads
Multithreaded Programming - Quiz
Multithreading Fundamentals - Quiz
Handling Exceptions
Understanding Exceptions
Throwing Exception
Catching Exceptions
Catching Exceptions
Custom Exceptions
finally Clause
Handling Exceptions Conclusion
Java Input Output
Create Reader Streams
Java Exception Basics - Quiz
Each question is worth one point. Select the best answer or answers for each question.
1.
Which of the following occurrences fails to qualify as an exception?
Please select the best answer.
A.
A file is not found.
B.
A network connection fails.
C.
An infinite loop is entered.
2.
What standard class is derived from
Throwable
and serves as the base class for normal Java exceptions?
Please select the best answer.
A.
RuntimeException
B.
Exception
C.
Error
3.
How do you indicate that the code in a method is capable of throwing an exception?
Please select the best answer.
A.
Use the
throw
keyword.
B.
Use the
throws
keyword.
C.
Create an
Exception
object and return it from the method.
Your score is 0.0
Submit
Quiz Explanation