18 Constructor Reference Using Double Colon (::) Operator

Published: 11 January 2022
on channel: 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  


On this page of the site you can watch the video online 18 Constructor Reference Using Double Colon (::) Operator with a duration of hours minute second in good quality, which was uploaded by the user coderolls 11 January 2022, share the link with friends and acquaintances, this video has already been watched 93 times on youtube and it was liked by 0 viewers. Enjoy your viewing!