ExamQuestions.com

Register
Login
Java SE 8 Programmer II Exam Questions

Oracle

Java SE 8 Programmer II

87 / 130

Question 87:

Given: 
image

                
                
            
                image
            
            
                
Which modification enables the code fragment to print Speaker? 

Answer options:

A. Implement Predicate in the Product.ProductFilter class and replace line n2 with .filter (p -> p.ProductFilter.test (p))
B. Replace line n1 with: public static boolean isAvailable (Product p) {
C. Replace line n2 with: .filter (p -> p.ProductFilter: :isAvailable (p))
D. Replace line n2 with: .filter (p -> Product: :ProductFilter: :isAvailable ())