Home
Exams
Providers
About
Sign In
Sign Up
Home
/
Exams
/
Oracle Java Enterprise Development
/
Question #4
#4
Multiple Choice
Mark for review
Given the code fragment:
Which two code fragments are valid at line 2?
A.
for (int count = 0; count < 5; count++) {System.out.print(count);}
B.
package p1;
C.
import java.util.*;public void display() {List<Integer> nums = new ArrayList<> ();}
D.
{private int num;}
E.
private String name = “John”;public void display() {System.out.print(name);}
Reveal Answer
Previous
Question 4 of 97
Exam 1Z0-811 Topic 1 Question 6
Back to all questions
Next
Sign In
Sign Up