PROGRAMMING IN JAVA Assignment 2 | NPTEL | Answer with Explanation
Test Your Java Fundamentals with a Challenging MCQ Assignment on “ Java Programming Elements” Sharpen your core Java skills with this engaging multiple-choice quiz (MCQ).
Apr 3, 2024

Following is a program given for this question.
public class Question{
public static void main(String[] args){
int[] x = {222, 210, 012};
for(int i = 0; i < x.length; i++){
System.out.print(x[i] + "");
}
}
}
What will be the output of the above program?
a. 22221010
b. 12222101
c. 22101010
d. 22221012