1.

What is the output of this program? class main_class { public static void main(String args[]) { int x = 9; if (x == 9) { int x = 8; System.out.println(x); } } }

A. 9
B. 8
C. Compilation error
D. Runtime error
Answer» D. Runtime error


Discussion

No Comment Found