Java Method Reference Tutorial with Demonstration | Java 8 Features

preview_player
Показать описание
Java 8 Features - Learning java method reference is very useful for java programmers. Hence, get started with method reference in java learning here. Sometimes java method reference is used in place of Lambda Expressions in Java. For Method Reference :: operator in java is used. This is the new feature added in java 8 and is enabler for functional programming In this session we will learn complete java method reference feature. This session covers what is method reference in java, kinds of method reference in java 8, detailed demonstration of java method reference with syntax.
Some Key points -
:: operator in java is used
Feature added in Java 8
Compact, easy-to-read lambda expressions for methods that already have a name
When a lambda expression does nothing but call an existing method. In those cases, it's often clearer to refer to the existing method by name. Method references enable you to do this

Kinds of Java Method Reference -
1.Reference to a static method - ContainingClass::staticMethodName
2. Reference to an instance method of a particular object - containingObject::instanceMethodName
3. Reference to an instance method of any arbitrary object of a particular type - ContainingType::methodName
4. Reference to a constructor - ClassName::new

Playlist for Java sessions below, please consider watching this -

Kindly subscribe to the channel for getting regular updates of the new sessions on Software / Computer Application topics by clicking below link -

Follow me on -

Some Good Books -
Disclosure, I use affiliate Amazon links above. Purchasing through these links gives me a small commission to support videos on this channel -- the price to you is the same.

See you in the next video 😊
Thank you for remaining connected with the channel.

Chapters
00:00 Welcome note
00:48 Introduction to Method Reference in Java 8
01:36 Kinds of Method Reference in Java / Types of Method Reference in Java with Syntax
03:04 Java Method Reference Demonstration
10:05 Java Method Reference Demonstration - Reference to a static method
13:04 Java Method Reference Demonstration - Reference to an instance method of a particular object
15:36 Java Method Reference Demonstration - Reference to an instance method of any arbitrary object of a particular type
17:32 Java Method Reference Demonstration - Reference to a constructor
20:59 Summary
21:34 Thank You

#thinkconstructive #eshapuri #java8

Queries
how to reference to a static method
what is java method reference
what is method reference in java
how to implement java method reference
how to implement method reference in java
what is java 8 method reference
what is method reference in java 8
how to implement java 8 method reference
how to implement method reference in java 8
how many types of method reference in java
how many kinds of method reference in java
how many kinds of method reference in java 8
how many types of method reference in java 8
what is the syntax of java method reference
what is syntax of method reference in java 8
why java method reference is alternative of lambda expression
how to write functional interface in java
how to write method reference in java
what is :: operator in java
what is bifunctional in java
what is bifunctional in java 8
Рекомендации по теме
Комментарии
Автор

Method Reference is another interesting feature of Java 8. Sometimes also used as an alternative of Lambda Expressions. In this session all kinds of method references are discussed with examples.
Kindly watch the complete session and try all the examples to understand it completely.
Happy learning Java 8 Features.
Cheers,
Esha

ThinkConstructive
Автор

Mam your teaching of the way is awesome .
My humble request please make a video on microservices.

plZ plZ plZ 💞

dubeyankitsarar
Автор

Hai Madam, what is the meaning of aribitary object ?

gorityalaramana