MCQ
Single Best Answer
Not Set
QDetermine output:
public class Test{
public static void main(String[] args){
int[] x = {1, 2, 3, 4};
int[] y = x;
x = new int[2];
for(int i = 0; i < x.length; i++)
System.out.print(y[i] + " ");
}
}
ID: #2202
Array in Java
1,926 views
Question Info
#2202Q ID
Not SetDifficulty
Array in JavaTopic
Your Answer
Choose the Best Option
Click any option to instantly check if you're correct.
Correct Answer: Option C
Explanation
1 2
Continue Practice
Share
Share This Question
Challenge a friend or share with your study group.
More from This Topic