Most Commonly asked Java8 Stream based Interview Question — Final Part

Amar Balu
The Fresh Writes
Published in
4 min readFeb 23, 2023

--

This part is continuation to the already uploaded Part 1 & 2 of Most commonly asked Java 8 Stream Based Interview Question.

Image Source : https://javadeveloperzone.com/spring-boot/spring-boot-tutorial/

This part we will discuss some other possible questions that can be asked with the same set of Employee Objects.

For your Reference the List of Employee Objects is as follows

public class StreamInterviewQuestion {
static List<EmployeeObject> employeeObjectList = new ArrayList<EmployeeObject>();

public static void main(String[] args) {
employeeObjectList.add(new EmployeeObject(111, "Jeya", 30, "Female", "HR", 2011, 25000.0));
employeeObjectList.add(new EmployeeObject(122, "Polish", 29, "Male", "Sales", 2015, 18500.0));
employeeObjectList.add(new EmployeeObject(133, "Thomas", 26, "Male", "Administartion", 2012, 18700.0))…

--

--

Amar Balu
The Fresh Writes

I'm a front-end developer. I love React and Redux, Java, and Data Science. I write code for fun!. Join our publication : https://medium.com/thefreshwrites