15 real Exceptions questions from the Java bank, as asked in Indian campus drives and tech interviews. Every question has a verified answer and an AI-tutor explanation on placd — free to start.
1. What is Checked exception?
Junior
A.an exception subclass of Exception that the compiler forces a method to either catch or declare with throws
B.a Throwable subclass representing serious problems like running out of memory that applications normally should not catch
C.a try statement that declares closeable resources in parentheses and automatically closes them when the block exits
D.a subclass of RuntimeException that the compiler does not require to be caught or declared, typically signaling programming errors
A.Checked exception — a subclass of RuntimeException that the compiler does not require to be caught or declared, typically signaling programming errors
B.Checked exception — an exception subclass of Exception that the compiler forces a method to either catch or declare with throws
C.Checked exception — a clause that always executes after a try whether or not an exception was thrown, used to release resources
D.Checked exception — a try statement that declares closeable resources in parentheses and automatically closes them when the block exits
5. Which term means: "a subclass of RuntimeException that the compiler does not require to be caught or declared, typically signaling programming errors"?
A.Unchecked exception — a clause that always executes after a try whether or not an exception was thrown, used to release resources
B.Unchecked exception — a subclass of RuntimeException that the compiler does not require to be caught or declared, typically signaling programming errors
C.Unchecked exception — a Throwable subclass representing serious problems like running out of memory that applications normally should not catch
D.Unchecked exception — an exception subclass of Exception that the compiler forces a method to either catch or declare with throws
A.try-with-resources — a try statement that declares closeable resources in parentheses and automatically closes them when the block exits
B.try-with-resources — a subclass of RuntimeException that the compiler does not require to be caught or declared, typically signaling programming errors
C.try-with-resources — an exception subclass of Exception that the compiler forces a method to either catch or declare with throws
D.try-with-resources — a clause that always executes after a try whether or not an exception was thrown, used to release resources
Answers, AI explanations, and a scored voice mock interview
Sign up free to check your answers with explanations, ask the AI tutor anything on any question, and take one full AI mock interview — scored like a real panel.