Which of the below statement is/are true about Error?
A. An Error is a subclass of Throwable.
B. An Error is a subclass of Exception.
C. Error indicates serious problems that a reasonable application should not try to catch.
D. An Error is a subclass of IOException.
A. A and D
B. A and B
C. A and C
D. B and C
E. B and D
Answer: Option B
Solution(By Examveda Team)
An Error is a subclass of Throwable that indicates serious problems that a reasonable application should not try to catch.
Join The Discussion
Comments ( 13 )
A. An error that occurs during runtime
B. An error that occurs during compilation
C. A warning issued by the compiler
D. A type of loop
What is the purpose of the "try" block in exception handling?
A. It catches exceptions and handles them
B. It specifies the exception type
C. It contains the code that might throw an exception
D. It specifies the exception message
In Java, can a method declare multiple exceptions using the "throws" keyword?
A. Only if the method is marked as "static"
B. Yes, a method can declare multiple exceptions separated by commas
C. Only if the exceptions are marked as "final"
D. Only if the method is marked as "static"
Wrong Answer.
all Answers are wrong for this question
It will be A and C
how it can be A and B, according to explanation it should be A and C
please check ans you provide it is wrong
Please Change your answer to option C as Statement A and C are true in case of an Error. And it's not a subclass of Exception class.
if u see the throwable class hierarchy then you see that error is not a subclass of Exception
No doubt option(C) is the correct Answer
Error is not a sub class of exception and option-c is also correct.
so option A and C are correct.
Option C
so the answer must be C not B make it corecct
Answer of this question should be C
Option C) Is correct because error is a subclass of throwable class and more it ndicates serious problems that a reasonable application should not try to catch.
answer should be c
b is incorrect