Search the courses, subjects, tracks, games and features, or jump straight to a page.
4 cards from this section. Quick, good the night before a test.
What is an exception?
Think about what happens when there's an error.
Mention one example of a checked exception.
It's related to handling files.
What mechanism allows you to handle errors in Java?
Remember the keywords related to error handling.
True or False: Checked exceptions are ignored at compile time.
Consider what checked exceptions require from the programmer.
Write a Java program that demonstrates the use of checked and unchecked exceptions, handling each properly.
Focus on creating methods that throw both types and demonstrate proper handling.
Create a custom exception class named AgeTooLowException and demonstrate how to throw this exception in a method.
Think about how to extend Exception and provide an appropriate message.
6 more questions in this section. Enroll free to practise them all.
Enroll free