Search the courses, subjects, tracks, games and features, or jump straight to a page.
2 cards from this section. Quick, good the night before a test.
What happens to an uncaught exception in a method?
Think about what a method does when it encounters an error.
What keyword do we use to declare that a method can throw exceptions?
It's a keyword with a strong emphasis on mistakes!
What occurs when an exception is not caught in the current method?
Think about what the method does with errors.
The throws keyword is used to declare?
Is it signaling a warning?
Write a Java code snippet where a method throws an exception, and the calling method handles it. Describe what happens if the exception is not handled.
Look for the flow of the exception through the methods.
Explain how you would design a system that requires exception propagation for a web application handling user inputs.
Think about how users interact with your application.
5 more questions in this section. Enroll free to practise them all.
Enroll free