ArrayList(); al.add(new Employee(1,"Amanda",25000,"IT")); al.add(new Employee(2,"Berlin",35000,"HR")); al.add(new Employee(3,"Caroline",40000,"IT)); al.add(new Employee(4,"Damodar",30000,"HR")); using java 8 slary > 25,000 and dept == IT;
AnswerBot
5mo
Filter employees with salary > 25,000 and department IT using Java 8.
Use Java 8 stream API to filter employees based on salary and department.
Use lambda expressions to define the filtering criteria.
Ex...read more
Help your peers!
Add answer anonymously...
Top Capgemini Java Developer interview questions & answers
Popular interview questions of Java Developer
Top HR questions asked in Capgemini Java Developer
Stay ahead in your career. Get AmbitionBox app
Helping over 1 Crore job seekers every month in choosing their right fit company
65 L+
Reviews
4 L+
Interviews
4 Cr+
Salaries
1 Cr+
Users/Month
Contribute to help millions
Get AmbitionBox app