13 Consumer - Predefined Functional Interface

Опубликовано: 18 Октябрь 2024
на канале: coderolls
10
0

#Java8Features #Consumer #FunctionalInterface

Example code can be found here: https://github.com/coderolls/java-8-f...

In this video, we will see the Consumer, a predefined functional interface.

Consumer has a single abstract method accept(T t), it will accept a single input parameter of type T. It has return type as a void, that means it will not return anything.

Watch this video, to learn more about consumer and two examples.

This video is a part of Java 8 Features Full Course. ▶️    • Java 8 Features - Full Course  

GitHub Repository Link: https://github.com/coderolls/java-8-f...

00:00 Recap
00:22 What is Consumer?
00:50 Consumer Example 1
02:44 Consumer Example 2
04:40 Conclusion

Buy me a coffee ☕: https://www.buymeacoffee.com/gauravku...

This is video is uploaded by codeRolls. Visit us at https://coderolls.com

Subscribe to my YouTube Channel ►    / @coderolls  

Follow us on:

Twitter ►   / coderolls  
Facebook ►   / coderolls  
Instagram ►   / coderolls  
Pinterest ►   / coderolls