Question PRG-JAVA-0058
MediumWhich Java feature, added in Java 8, lets you write list.forEach(x -> System.out.println(x))?
- A.
Generics
- B.
Enums
- C.
Sign up free to see the answer and a step-by-step explanation.
Popular companies
Prepare company by company
Hiring pattern, syllabus, past questions and mocks for each company.
All companiesPractice by subject
Java question
Which Java feature, added in Java 8, lets you write list.forEach(x -> System.out.println(x))?
Generics
Enums
Sign up free to see the answer and a step-by-step explanation.
Annotations
Lambda expressions