What is the result?()
A. The program runs and prints “Hello” B. An error causes compilation to fail. C. The program runs and prints “Hello world!”. D. The program runs but aborts with an exception.
A. foo has the value”” B. foo has the value null. C. An exception is thrown. D. The code will not compile.
A. The Error class is a Runtime Exception. B. No exceptions are subclasses of Error. C. Any statement that may throw an Error must be enclosed in a try block. D. any statement that may throw an Exception must be enclosed in a try block. E. Any statement that may throw an Runtime Exception must be enclosed in a try block.