MCQ Single Best Answer Not Set

QWhat is output of the following code:
public class Test{
        public static void main(String[] args){
                int[] x = {120, 200, 016 };
                for(int i = 0; i < x.length; i++)
                        System.out.print(x[i] + " ");
        }
}

ID: #2201 Array in Java 2,518 views
Question Info
#2201Q ID
Not SetDifficulty
Array in JavaTopic

Choose the Best Option

Click any option to instantly check if you're correct.

  • A 120 200 16
  • B 120 200 14
  • C 120 200 016
  • D 016 is a compile error. It should be written as 16.
Correct Answer: Option B

Explanation

120 200 14

Share This Question

Challenge a friend or share with your study group.