单选题Given 1. public class Foo { 2. public static void main (String [] args) } 3. try { return;} 4. finally { Syste.out.printIn (“Finally”);} 5. } 6. } What is the result( )?AThe program runs and prints nothing.BThe program runs and prints “Fina
题目
单选题
Given 1. public class Foo { 2. public static void main (String [] args) } 3. try { return;} 4. finally { Syste.out.printIn (“Finally”);} 5. } 6. } What is the result( )?
A
The program runs and prints nothing.
B
The program runs and prints “Finally”.
C
The code comiles. But an exception is thrown at runtime.
D
The code will not compile because the catch block is missing.