Given a collection of Employee objects, how can we get the customers with name starting with 'A' using lambda expression.
Questions
Search
List By Company
List By Topic
Legacy
Tests
Repository
DashBoard
Java
Java 8
Java 7
Java Abbreviations
OCJP / SCJP
Class List
New in Java 8
Java Exceptions
Spring Exceptions
Java Enums
Java 8 Lambda
Java 8 java.time
Big Data
Best Of Java
Discussion
Search
Subscribe
Search Interview Questions
More than 3000 questions in repository.
There are more than 900 unanswered questions.
Click here
and help us by providing the answer.
Have a video suggestion.
Click Correct / Improve and please let us know.
Label / Company
Label / Company / Text
Search
Submit Question
Interview Questions and Answers
Q1.
Given a collection of Employee objects, how can we get the customers with name starting with 'A' using lambda expression.
Core Java
Ans. List emp = Arrays.asList("American", "Indian", "Finn");
emp.stream().filter(em -> em.startsWith("A")).forEach(System.out.println);
Help us improve. Please let us know the company, where you were asked this question
:
Like
Discuss
Correct / Improve
 java8  java 8  lambda
Asked in 1 Companies
Correction
Duplicate of Another Question
Company where this question was Asked
Suggestion
Related Questions
What is a Lambda Expression ? What's its use ?
Difference between final and effectively final ? Why is effectively final even required ?
Difference between Predicate, Supplier and Consumer ?
What are the problems one could face while working with serverless technologies like AWS Lambda ?
How does AWS Lambda handle failure during event processing?
Can you explain the integration between API Gateway and Lambda if we wish to develop services using these tools.
What would you do if you see an error thrown by a lambda function as "Access Denied" while doing something with S3 ?
What are the advantages and disadvantages of using Lambda over EC2 ?
What are the different trigger types in AWS Lambda ?
What does the following lambda expression means ?
Help us and Others Improve. Please let us know the questions asked in any of your previous interview.
Any input from you will be highly appreciated and It will unlock the application for 10 more requests.
Company Name:
Questions Asked: