

MCQOPTIONS
Saved Bookmarks
1. |
What is the output for the below code ? public class Test{ public static void main(String[] args) { int i = 010; int j = 07; System.out.println(i); System.out.println(j); } } |
A. | 8 7 |
B. | 10 7 |
C. | Compilation fails with an error at line 3 |
D. | Compilation fails with an error at line 5 |
Answer» B. 10 7 | |