In this video, We will learn about the method reference in java 8 and how it really works.
Method references are introduced first in Java 8 and they can substitute a Single line lambda where within a lambda we just call a method.
Method reference in java are very readable helps to write clean code.
In this video We will learn the following :
1. what are Method references in Java ?
2. Need of Method references in Java
3. Using existing functional interfaces to create method reference
4. What are the different types of method reference we have in java 8
5.How to use method reference with Stream API
We will talk about all the types of method reference with example.
Type 1 : Reference to a static method
Type 2 : Reference to an instance method of a particular object
Type 3 : Reference to an instance method of an arbitrary object of a particular type
Type 4 : Reference to a constructor
timestamp
-------------------
00:00 - Method Reference : Up Next
02:56 - What is method reference in Java ?
08:17 - Type 1 : Static Method Reference
11:51 - Type 2 : Reference to an instance method of a particular object
12:47 - Difference between Direct Method call vs Method Reference
17:52 - Type 3 : Reference to an instance method of an arbitrary object
32:16 - String::Concat and BiFunction
39:31 - String::toUpperCase
50:25 - System.out::println vs PrintStream::println
59:49- ArrayList::add
01:09:41 - Reference to a constructor
01:13:54 - Employee::New
01:15:16 - Referring to a one arg constructor
01:20:01 - Stream API & Method Reference
For more free/paid courses visit
https://www.seleniumexpress.com
LINKS AND FREE LEARNING RESOURCES
========
Watch my new mock interview series for java developers
https://youtu.be/yX2w-Sof95s
Watch my new Hello spring boot series
https://youtu.be/F_rGkDeihBg?si=AvqLgRVvytkhy8lq
Watch Spring boot Hot topics
https://youtu.be/CUQWZHjuq-w
spring core
https://www.youtube.com/watch?v=r2Q0Jzl2qMQ&list=PL3NrzZBjk6m-nYX072dSaGfyCJ59Q5TEi
spring mvc
https://www.youtube.com/watch?v=zCHrZdJODg4&list=PL3NrzZBjk6m-OSeL3DRMD_ISa0u-9c1l1
spring mvc intermediate
https://www.youtube.com/watch?v=40YaLHbrwrY&list=PL3NrzZBjk6m_2jw8sC0BkEwSPFHxgQDWr
Spring JDBC
https://www.youtube.com/watch?v=5j_vh1b9dV8&list=PL3NrzZBjk6m-rYTKze-5Y5RvU8eykal4j
spring live project
https://www.youtube.com/watch?v=m_b_FwDjAXM&list=PL3NrzZBjk6m-9CVPueDLLermojwtfuW_f
SPRING SECURITY COURSE[NEW]
https://youtu.be/NMNLozLGT1s
For more courses visit
https://www.seleniumexpress.com
Any time you are getting stuck with issues, Feel free to ask for support.
You can send mail to [email protected]
you can ping me on my Facebook page
https://www.facebook.com/seleniumexpress
Make sure to join my private Facebook page (Ask me here)
“SeleniumExpress - Support"
https://www.facebook.com/groups/187000222361579/
you can ask for support in my website forum
https://www.seleniumexpress.com
Follow me on Insta
https://www.instagram.com/selenium_express/