programming languages Online Quiz - 208
Description: programming languages Online Quiz - 208 | |
Number of Questions: 20 | |
Created by: Aliensbrain Bot | |
Tags: programming languages |
Identify the true statements.
By convention, all exception-class names should end with the word Exception
Java guarantees that a finally clause (if one is present) will execute even if a try block exits by using a return, break or continue statement.
From which problems is it possible for a program to recover?
Is a program required to catch all exceptions that might happen?
Class Exception is the superclass of all exceptions
Java throws ------------------- when division by zero in integer arithmetic occurs
A try block must always be followed by one or more catch blocks
If a catch handler is written to catch exception objects of a superclass type, it can also catch all objects of that class's subclasses.
What type of exception is thrown by parseInt() if it gets illegal data?
Is this Legal? Class ExceptionA extends Exception {} class ExceptionB extends ExceptionA {} public class Test{ void thrower() throws ExceptionA{ throw new ExceptionA(); } public static void main(String[] args){ Test t = new Test(); try{t.thrower();} catch(ExceptionB e) {} } }
Which statement is FALSE about the try{} block?
Which statement is FALSE about catch{} blocks?
What happens in a method if an exception is thrown in a try{} block and there is NO MATCHING catch{} block?
How many finally{} blocks may there be in a try/catch structure?
When is a finally{} block executed?
What is Java (in regard to Computer Science) ?
What is an Applet ?
Java runs on _______.
Why can't the whole program just consist of the one line that does the painting ?