ExamQuestions.com

Register
Login
Java SE 8 Programmer Exam Questions

Oracle

Java SE 8 Programmer

29 / 76

Question 29:

Given the code fragment: 
image
Which code fragment, when inserted at line 3, enables the code to print 10:20? 

Answer options:

A. int[] array n= new int[2];
B. int[] array; array = int[2];
C. int array = new int[2];
D. int array [2] ;