Java 8 Streams programs you must prepare for Java Interviews

preview_player
Показать описание
Below are the frequently asked programs during the coding round in java interviews. In this video, I explain the below programs in detail.

Please make sure, you prepare well for the below programs.

1.Write a program to print employee details working in each department

2.Write a program to print employees count working in each department

3.Write a program to print active and inactive employees in the given collection

4.Write a program to print Max/Min employee salary from the given collection

5.Write a program to print the max salary of an employee from each department
Рекомендации по теме
Комментарии
Автор

super siva, good keep it up. its 13 years since we met.

venkatesha
Автор

Thank you sir for making this video. . To get active and Inactive works in a single Iteration we can use partitionBy() method. Sample Code :, It returns Map<Boolean, List<Employee>> . At the calling place map.get(true) for active and map.get(false) for inactive.. We have n number of ways it is the one of the way.

maheshuma
Автор

Great and wonderful example for Stream API....

SandeepKumar-sefd
Автор

Wonderful explanation with example. Thank you so much. Will be waiting to see more videos.. 👏🏻👌🏻🙏🏻👍

venkatsam
Автор

Thank you for sharing your knowledge with us Sir

lakshmidevilakshmidevi
Автор

Thank you please make one more video on Java8 coding questions

Vithal_Nivargi
Автор

Very Nice Video. very well Explained. Thank

zuberdiwan
Автор

Amazing explanation. Thank You 😊. Could have formatted the code. Few parts of code is missing.

kemparaj
Автор

To calculate dept wise statistics like min, max, average we can use following code : empList.stream.collect(Collectors.groupingBy(Employee::getDeptId, Collectors. ; it returns Map<Integer, DoubleSummaryStatistics> . Just for knowledge purpose sharing my thoughts.. Don't take it in another way.

maheshuma
Автор

@siva, its very useful for quick review of java 8 streams. Very nice example you taken and explained . 👍 very best and helpful.

riteshchiddarwar
Автор

Very helpful videos, make more such java8 programming videos....thanks a lot sir

adityapratapsingh
Автор

Nice video.. very nicely explain.. Can you please explain the reducing function example.

abhishekjain
Автор

Hi Siva, I tried Lambda expression as input for "Comparator.comparing" It was not working

muchukundareddy
Автор

Sir can you answer this select employee where department is technology and location not equal to mumbai..

rajuls
Автор

I can request u sir whenever u writing the codes then atleast first explain predefined method apart from that then u can write the code it's request 🙏

pratapjavasingh
Автор

what is the name of the background music?

TheChillGuyVlogs
Автор

Sir outer joins practice questions plz..scenario based

vikrantharne
Автор

Sir a git hub link would have been helpful

dharamkirti
Автор

how to find sum of the salary of each department????

knowledgeshare
Автор

sir plz upload hai video where u would teach run time question by your suscriber

morning
join shbcf.ru