1Z0-809 Dumps

1Z0-809 Free Practice Test

Oracle 1Z0-809: Java SE 8 Programmer II

QUESTION 26

Given the code fragment:
1Z0-809 dumps exhibit
Which statement can be inserted into line n1 to print 1,2; 1,10; 2,20;?

Correct Answer: B

QUESTION 27

Given the code fragment:
List nums = Arrays.asList (10, 20, 8): System.out.println (
//line n1
);
Which code fragment must be inserted at line n1 to enable the code to print the maximum number in the nums list?

Correct Answer: A

QUESTION 28

Given the content of Operator.java, EngineOperator.java, and Engine.java files:
1Z0-809 dumps exhibit
and the code fragment:
1Z0-809 dumps exhibit
What is the result?

Correct Answer: A

QUESTION 29

Given that course.txt is accessible and contains:
Course : : Java
and given the code fragment:
public static void main (String[ ] args) { int i;
char c;
try (FileInputStream fis = new FileInputStream (“course.txt”); InputStreamReader isr = new InputStreamReader(fis);) { while (isr.ready()) { //line n1
isr.skip(2);
i = isr.read (); c = (char) i;
System.out.print(c);
}
} catch (Exception e) { e.printStackTrace();
}
}
What is the result?

Correct Answer: B

QUESTION 30

Given:
1Z0-809 dumps exhibit
and
1Z0-809 dumps exhibit
Which interface from the java.util.function package should you use to refactor the class Txt?

Correct Answer: C