Question: What is the output of this programming code? Stream . of ( new Employee ( 1 , Ahmad, IT , 1 2 0
What is the output of this programming code?
Stream
ofnew Employee "Ahmad", IT new Employee "Sami", "Sales", new Employee "Huda", IT new Employee "Ali", "Marketing", new Employee "Hani", "Sales",
filtere egetSalary
sortedComparatorcomparingEmployee::getSalary
mape egetName: egetSalary
forEachstr System.out.printstr ;
Ahmad: Hani:
Ahmad: Hani: Sami: Ali: Huda:
Hani: Ahmad:
Huda: Ali: Sami: Hani: Ahmad:
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
