MCQOPTIONS
Saved Bookmarks
| 1. |
What is the output of this program? class main_class { public static void main(String args[]) { if (a == 20) { int a= 18; System.out.println(x); } } } |
| A. | 20 |
| B. | 18 |
| C. | Compilation error |
| D. | Runtime error |
| Answer» D. Runtime error | |