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...
Capgemini Java Developer Interview Questions
Stay ahead in your career. Get AmbitionBox app
qr-code
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

Made with ❤️ in India. Trademarks belong to their respective owners. All rights reserved © 2024 Info Edge (India) Ltd.

Follow us
  • Youtube
  • Instagram
  • LinkedIn
  • Facebook
  • Twitter