What does the following code produce: public class Examination main(String[] args) public static void main(String[] args) x = 120, 200, 016; int[] x = 120, 200, 016; System.out.print(x[i] + " "); for(int I = 0; I x.length; i++)
A. 140 120 200 14
B.1220 0016
C.The number 016 is a compilation error. It should be written as 16 instead.
D. 160 200 120
Answer:A
What does the following code produce: public class Examination main(String[] args) public static void main(String[] args) x = 120, 200, 016; int[] x = 120, 200, 016; System.out.print(x[i] + " "); for(int I = 0; I x.length; i++)
A. 140 120 200 14 B.1220 0016 C.The number 016 is a compilation error. It should be written as 16 instead. D. 160 200 120
Explanation: The number 016 is an octal number. The prefix 0 denotes that a number is in octal format.