Solved

What Will Be Printed by the Statements Below

Question 94

Multiple Choice

What will be printed by the statements below?
Int[] values = { 1, 2, 3, 4};
Values[2] = 24;
Values[values[0]] = 86;
For (int i = 0; i < values.length; i++)
System.out.print (values[i] + " ") ;


A) 86 2 24 4
B) 86 24 3 4
C) 1 86 24 4
D) 1 2 24 86

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions