18 Constructor Reference Using Double Colon (::) Operator

Опубликовано: 11 Январь 2022
на канале: coderolls
93
0

#Java8Features #ConstructorReference

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

In this video we will see the constructor reference using double colon operator.

Previously we have seen a video on method reference. We have covered how we can refer to the static method and instance method. In this video, we will see how we can refer to the constructor.

As we have seen in the previous video we can refer to the static method and instance method by their name but to refer a constructor we have to use a keyword 'new'.
Watch this full video to learn more about constructor reference. I have given a simple example to explain the constructor reference.

This video is part of Java 8 features full course. ▶️    • 01 How To Write Lambda Expressions In Java?  

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

00:00 Recap
00:16 Constructor Reference Syntax
01:06 Example overview
01:29 Example with Lambda Expressions
04:24 Example with Constructor Reference
05:24 Comparison between first and second example
06:08 Important points about Method and Constructor Referenece

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  


На этой странице сайта вы можете посмотреть видео онлайн 18 Constructor Reference Using Double Colon (::) Operator длительностью часов минут секунд в хорошем качестве, которое загрузил пользователь coderolls 11 Январь 2022, поделитесь ссылкой с друзьями и знакомыми, на youtube это видео уже посмотрели 93 раз и оно понравилось 0 зрителям. Приятного просмотра!