Java SE 8 Programmer 1Z0–808 Practice Full Test 1

© examsiri.com
Question : 19 of 84
 
Marks: +1, -0
Given the code fragment:
1. public class Test {
2.   public static void main (String[] args) {
3.      / * insert code here * /
4.      array[0]=10;
5.       array[1]=20;
6.       System.out.print(array[0]+":"+array[1]);
7.   }
8.}
Which code fragment, when inserted at line 3, enables the code to print 10:20?
Go to Question: