Method reference Tutorial - Java 8 features

Published: 15 March 2024
on channel: Random clouds by Balaji Chandrasekaran
269
8

   / @random-clouds-balaji  
Java 8 indroduces a new feature called method reference to give a reference to a method.
Method references are used to refer to methods of functional interfaces directly.
When a lambda expression is used solely to invoke a method on an object or class, it can often be replaced with a method reference.
This results in cleaner and more concise code




















00:00 Introduction
01:36 "Method reference types"
01:59 "Reference to a static method"
02:16 "Reference to a static method usage"
02:51 "Instance Method Reference of a particular object"
03:16 "Instance Method Reference of a particular object usage"
03:43 "Reference to an instance method of an arbitrary object of a particular type"
04:10 "Reference to an instance method of an arbitrary object of a particular type usage"
04:41 "Reference to a constructor"
04:55 Reference to a constructor usage"


On this page of the site you can watch the video online Method reference Tutorial - Java 8 features with a duration of hours minute second in good quality, which was uploaded by the user Random clouds by Balaji Chandrasekaran 15 March 2024, share the link with friends and acquaintances, this video has already been watched 269 times on youtube and it was liked by 8 viewers. Enjoy your viewing!