--:--









Quiz for try-catch-finally

Course: JAVA | Subject: Java | Topic: Exception Handling



Logo

Q1: What is the purpose of the try block in Java?

Logo

Q2: Which block is always executed whether an exception occurs or not?

Logo

Q3: What will happen if an exception is not caught?

Logo

Q4: Can a try block exist without a catch block?

Logo

Q5: Which of the following is used to throw an exception manually?

Logo

Q6: How many catch blocks can be associated with one try block?

Logo

Q7: What is the output of finally block if exception occurs?

Logo

Q8: Which of the following keywords is used to handle exceptions?

Logo

Q9: What is the correct order of blocks in exception handling?

Logo

Q10: What happens if finally block has a return statement?

Are you ready to start test? Set your time limit