MCQOPTIONS
Saved Bookmarks
| 1. |
What is the output of this program?public class Result { public static void main(String args[]) { try { int p = 2; int q = 9; int s = p / q; System.out.print("First"); } catch(Exception e) { System.out.print("Second"); } } } |
| A. | First |
| B. | Second |
| C. | Compilation Error |
| D. | Runtime Error |
| E. | None of these |
| Answer» B. Second | |