Printed lines

Report a typo

Select all lines that will be printed by the following code:

try {
    String s = null;
    char ch = s.charAt(10);
    System.out.println(ch);
} catch (RuntimeException e) {
    System.out.println("A runtime exception occurred");
} catch (Exception e) {
    System.out.println("An exception occurred");
} finally {
    System.out.println("Finally!");
}
Select one or more options from the list
___

Create a free account to access the full topic