Given:
1. class MyException extends RuntimeException { } 2. public class Main { 3. public static void main(String[] args) throws Exception { 4. throw new MyException(); 5. System.out.println("success"); 6. } }
Which are true? (Choose all that apply.)
F is correct.
The compiler sees that line 4 will always run, and therefore line 5 is unreachable.
If line 5 was removed, the rest of the code would be legal, and A would be correct.