Basics of Exception Handling in Java
Description: This quiz has basics of Exception Handling questions | |
Number of Questions: 15 | |
Created by: Aliensbrain Bot | |
Tags: Exception Handling Java |
What would be the output of the following program?
Class A {
public static void main(String args[]) {
int a = 0;
int b = 10 / a;
}
}
Which of the following statements is false regarding 'finally' keyword in Java?
Which of the following is not an unchecked exception?
Which of the following keywords is not associated with Java exception handling?
Which of the following is responsible for the occurence of exceptions?
Which of the following Exception classes in Java is used to deal with an exception, where an assignment to an array element is of incompatible type?
Which of the following methods is used in Java to throw an exception explicitly in a program?
Which of the following methods of Thread class waits for a thread to terminate?
Which of the following Exception classes is used to deal with an exception of an attempt to violate the security?
Which of the following blocks in Java is executed regardless of whether an exception is thrown or not?
Which of the following methods of Throwable class sends the stack trace to the specified stream?
Name the exception thrown by read method of the InputStream class
Which of the following is not a Java's checked exception?
Which of the following classes is at the top of Exception class hierarchy?
Which of the following Exception classes is used when a requested operation is not compatible with the current thread state?