1.

What is the output of this program?public class scope_var { public static void main(String args[]) { int a; a = 5; { int b = 6; System.out.print(a + " " + b); } System.out.println(a + " " + b); } }

A. Compilation error
B. 5 6 5 6
C. 5 6 5
D. Runtime error
E. None of these
Answer» B. 5 6 5 6


Discussion

No Comment Found