Solved

What Will Be Printed by the Statements Below

Question 66

Multiple Choice

What will be printed by the statements below?
Int[] values = { 10, 20, 30, 40};
For (int i = 1; i < values.length; i++)
Values[i] = values[i - 1];
For (int i = 0; i < values.length; i++)
System.out.print (values[i] + " ") ;


A) 10 9 8 7
B) 10 19 29 39
C) 10 10 10 10
D) 9 19 29 39

Correct Answer:

verifed

Verified

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

Related Questions