ExamQuestions.com

Register
Login
Java SE 8 Programmer Exam Questions

Oracle

Java SE 8 Programmer

47 / 76

Question 47:

Given the code fragments: 
image
Which code fragment, when inserted at line n1, enables the code to print Hank? 

Answer options:

A. checkAge (iList, ( ) -> p. get Age ( ) > 40);
B. checkAge(iList, Person p -> p.getAge( ) > 40);
C. checkAge (iList, p -> p.getAge ( ) > 40);
D. checkAge(iList, (Person p) -> { p.getAge() > 40; });