#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
Sur cette page du site, vous pouvez voir la vidéo en ligne 18 Constructor Reference Using Double Colon (::) Operator durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur coderolls 11 janvier 2022, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 93 fois et il a aimé 0 téléspectateurs. Bon visionnage!