What is output of the following code:
```
public class Test {
public static void main(String[] args) {
int list[] = {1, 2, 3, 4, 5, 6};
for (int i = 1; i < list.length; i++)
list[i] = list[i - 1];
for (int i = 0; i < list.length; i++)
System.out.print(list[i] + " ");
}
}
```
a. 1 2 3 4 5 6
b. 2 3 4 5 6 6
c. 2 3 4 5 6 1
d. 1 1 1 1 1 1
d. 1 1 1 1 1 1
You might also like to view...
Write a method called average that accepts two integer parameters and returns their average as a floating point value.
What will be an ideal response?
Why does the NIC allocate very few Class A addresses?
What will be an ideal response?
Which of the following is NOT true about sharing photos and videos on Facebook?
A) The maximum file size you can upload is 15 MB. B) You can identify people in your photos by tagging them. C) Facebook enables any member to upload digital photographs to the Facebook site. D) Facebook lets you upload photos in the JPG, GIF, TIFF, and PNG file formats.
Use the ____________________ tool to distort artwork along a horizontal or vertical axis.
Fill in the blank(s) with the appropriate word(s).