Hello Kamal. Thanks for your valuable feedback. It will boost us to do new things. Please subscribe to get updates about new videos. You can view all other Java 1.8 New Feature Videos by Durga sir in the following link: goo.gl/ujVNJH
Hello Rishikesh. Thanks for your valuable feedback. It will boost us to do new things. Please subscribe to get updates about new videos. You can view all other Java 1.8 New Feature Videos by Durga sir in the following link: goo.gl/ujVNJH
Hello Mukesh. Thanks for your valuable feedback. It will boost us to do new things. Please subscribe to get updates about new videos. You can view all other Java 1.8 New Feature Videos by Durga sir in the following link: goo.gl/ujVNJH
This is just for your reference friends. please watch complete video you will learn lot of things.the way Durga sir explain is amazing. 1. Method and constructor reference are alternative to lambda expression. 2. Main advantage of using these is code re usability. 3. we can refer any method with class_name followed by double colon(::) then method name. Example : Test::m1(); 4.(**) : Functional interface methods can be mapped to our specified method by using :: operator , this is called method reference. 5. to call non-static (instance) method we can use object reference instead of class name Syntax : Test t = new Test(); t::method_name 6.if you have any existing method then go for method reference instead of writing lambda expression. Rule(**) : while using MR make sure that method argument must be same. ---------------Constructor reference-------------------------- When we can use CR ? When FI method return object then we should go for CR. Syntax : class_name::new 1 ) With CR you can refer FI method with class constructor.
Thank you sir for this Java 8 series. I used to feel this one as difficult concept Hence never used. But after going through this series I got full confidence. This one is really helpful .... Always stay safe and healthy sir....
Hello Zenith. Thanks for your valuable feedback. It will boost us to do new things. Please subscribe to get updates about new videos. You can view all other Java 1.8 New Feature Videos by Durga sir in the following link: goo.gl/ujVNJH
First of all thank you so much for this series. I have one small doubt- As you said, *only restriction is argument type must be matched* ( 23:41 ). Can you tell why following code snippet working fine? BiConsumer biConsumer = ArrayList::add; ArrayList li = new ArrayList(); biConsumer.accept(li, "Tanmoy"); System.out.println(li);
There are only 2 GOD's Of Java In India & Maybe Whole World. One is Ramesh Sr From LARA Tech Banglore & Other Is DURGA Sr From DurgaSoftwareSolution Hydrabad. Thanks For The Multiverse GOD Sri Hari Vishnu - He Inspired One Of The GOD To Give Free Education On UA-cam...Feeling Blessesd.
Hello Shubham Agarwal. Thanks for your valuable feedback. It will boost us to do new things. Please subscribe to get updates about new videos. You can view all other Java 1.8 New Feature Videos by Durga sir in the following link: goo.gl/ujVNJH
Hi sir! Arguments types must be matched in method reference. But in the below e.g. even though arguments type are note same, code is executing fine. (see e.g. below) public interface Interf { public void add(int x, int y); } public class Test { private void sum (int m, long n) { System.out.println("Sum : " + (m+n)); }
public static void main(String[] args) { Test t = new Test(); Interf i1 = t::sum; i1.add(100, 200);
Hello Sir , your explanation is so simple so that anyone can understand easily, just started to watch your vidoes. I never understood generics clearly but from your tutorials now i got more confidence in generics. Also waiting for your Javascript Nashorn videos. Cant't thank you enough.
Hello Srikanth. Thanks for your valuable feedback. It will boost us to do new things. Please subscribe to get updates about new videos. For Javascript Nashorn videos, Plz contact our online team durgasoftonlinetraining@gmail.com or call us on this number +918885252627, 7207212427/28
Hello Shekar. Thanks for your valuable feedback. It will boost us to do new things. Please subscribe to get updates about new videos. Use the below links to access Durga Sir Videos and Downloadable Materials with Life-Time Access. 1. Oracle Java Certification: Shortest Way To Crack OCA 1Z0-808 Link: goo.gl/vcMKjz 2. Java 8 New Features In Simple Way Link: goo.gl/F2NfZi 3. Java 9 New Features In Simple Way : JShell, JPMS and More Link: goo.gl/s9PP1p 4. Complete JDBC Programming Part-1 Link: goo.gl/uT9sav 5. Complete JDBC Programming Part-2 Link: goo.gl/VmhM7t Regards DURGASOFT Online Team +918885252627, 7207212427/28 durgasoftonlinetraining@gmail.com
Hello Friend. Thanks for your valuable feedback. It will boost us to do new things. Please subscribe to get updates about new videos. You can view all other Java 1.8 New Feature Videos by Durga sir in the following link: goo.gl/ujVNJH
Hello Friend. Thanks for your valuable feedback. It will boost us to do new things. Please subscribe to get updates about new videos. You can view all other Java 1.8 New Feature Videos by Durga sir in the following link: goo.gl/ujVNJH
Hello Bipin Jaiswal. Thanks for your valuable feedback. It will boost us to do new things. Please subscribe to get updates about new videos. Use the below links to access Durga Sir Videos and Downloadable Materials with Life-Time Access. 1. Oracle Java Certification: Shortest Way To Crack OCA 1Z0-808 Link: goo.gl/vcMKjz 2. Java 8 New Features In Simple Way Link: goo.gl/F2NfZi 3. Java 9 New Features In Simple Way : JShell, JPMS and More Link: goo.gl/s9PP1p 4. Complete JDBC Programming Part-1 Link: goo.gl/uT9sav 5. Complete JDBC Programming Part-2 Link: goo.gl/VmhM7t Regards DURGASOFT Online Team +918885252627, 7207212427/28 durgasoftonlinetraining@gmail.com
Hello Kararawala, Thanks for your valuable feedback. It will boost us to do new things. Please subscribe to get updates about new videos. Use the below links to access Durga Sir Videos and Downloadable Materials with Life-Time Access. 1. Java 8 New Features In Simple Way Link: goo.gl/F2NfZi 2. Java 9 New Features In Simple Way : JShell, JPMS and More Link: goo.gl/s9PP1p 3. Complete JDBC Programming Part-1 Link: goo.gl/uT9sav 4. Complete JDBC Programming Part-2 Link: goo.gl/VmhM7t Regards DURGASOFT Online Team +918885252627,7207212428/27 durgasoftonlinetraining@gmail.com
East or West Durga software is the best thank you so much sir plz sir upload more video just like java 9,10,11,12,13 plz sir upload all java feature plz plz plz💓💓💓💓🙏🙏🙏🙏🙏🙏🙏🙏🙏
Hello Spring Masti. Thanks for your valuable feedback. It will boost us to do new things. Please subscribe to get updates about new videos. Plz contact our online team durgasoftonlinetraining@gmail.com or call us on this number +918885252627, 7207212427/28
Hello Esmail. Thanks for your valuable feedback. It will boost us to do new things. Please subscribe to get updates about new videos. You can view all other Java 1.8 New Feature Videos by Durga sir in the following link: goo.gl/ujVNJH
I watched core Java video in 2017, since that time only I have subscribed Sir 😊. By the way the way you are delivering the knowledge is awesome even first stand class student can catch it. The Person who are teaching like this, only for them now India's worst student is also getting involved in a reputed MNC company. Keep it up Sir. God bless you and your team and your family 👍👍👍
Hello Zakir Hussain. Thanks for your valuable feedback. It will boost us to do new things. Please subscribe to get updates about new videos. You can view all other Java 1.8 New FeatureVideos by Durga sir in the following link: goo.gl/ujVNJH
Hello Ravi. Thanks for your valuable feedback. It will boost us to do new things. Please subscribe to get updates about new videos. You can view all other Java 1.8 New Feature Videos by Durga sir in the following link: goo.gl/ujVNJH
Hello Friend. Thanks for your valuable feedback. It will boost us to do new things. Please subscribe to get updates about new videos. You can view all other Java 1.8 New Feature Videos by Durga sir in the following link: goo.gl/ujVNJH
Thanks a lot for the video. However you did not mention instance method of an arbitrary object which is written as static method. Coul you please explain what is the difference between " Instance methods of an arbitrary object of a particular type" and "Instance methods of particular objects" Thanks in advance
Hello Ozgur. Thanks for your valuable feedback. It will boost us to do new things. Please subscribe to get updates about new videos. Plz contact our online team durgasoftonlinetraining@gmail.com or call us on this number +918885252627, 7207212427/28
Sir you said that for method reference only arguments are same.. not required same return type or same access modifiers so what about this code.. public class Main { static void add(int a,int b){ System.out.println(a+b); //return a+b; } public static void main(String[] args) { Interf i = (a,b)->a+b; System.out.println(i.sum(3,4)); Interf i1 = Main::add; i1.sum(3,4); } } interface Interf{ int sum(int a,int b); } Output is : Compiler error: incompatible types: bad return type in method reference Interf i1 = Main::add; ^ void cannot be converted to int 1 error
Hello Subhash. For Stream API videos, Plz contact our online team durgasoftonlinetraining@gmail.com or call us on this number +918885252627,7207212427/28
@@DurgaSoftwareSolutions This is absolutely non-sense why he has to call you? if you have any answer you can put here so that it will help everyone. Please don't simply add the response saying contact online it should have some meaning.
Hello Tarun. Thanks for your valuable feedback. It will boost us to do new things. Please subscribe to get updates about new videos. For Python material, Plz contact our online team durgasoftonlinetraining@gmail.com or call us on this number +918885252627, 7207212427/28
hello sir I have a doubt u said that return type doesn't matter but i think it only doesn't matter when the return type of method of functional interface is void. Please correct me if I am wrong.
You are correct Sachin Singh. It doesn't matter only if the return type is void. If the method in interface has any return type other than void, it must match with the implementation method. Else we will get compile time exception. (Compiler will give left & right)
Hello Vishal, Use the below links to access Durga Sir Videos and Downloadable Materials with Life-Time Access. 1. Java 8 New Features In Simple Way Link: goo.gl/F2NfZi 2. Java 9 New Features In Simple Way : JShell, JPMS and More Link: goo.gl/s9PP1p 3. Complete JDBC Programming Part-1 Link: goo.gl/uT9sav 4. Complete JDBC Programming Part-2 Link: goo.gl/VmhM7t Regards DURGASOFT Online Team +918885252627,7207212428/27 durgasoftonlinetraining@gmail.com
Hey sir durga! you said that the return type reference method is irrelevant, but that's true only when the function method of a functional interface returns void. Take for instance Predicate where the test() method returns boolean. if the referenced method returns something apart from boolean, an error will be displayed. Any explaination for that ?
Hello Ahmid. Thanks for your valuable feedback. It will boost us to do new things. Please subscribe to get updates about new videos. You can view all other Java 1.8 New Feature Videos by Durga sir in the following link: goo.gl/ujVNJH
t1.m1() calls the m1() method immediately, t1:m1 provides a reference to what will get called later when the method reference is applied....you got that shortly after you posted it, no?
Hello Atul Tyagi. For Java 1.8 Material, Plz contact our online team durgasoftonlinetraining@gmail.com or call us on this number +918885252627, 7207212427/28
Hello Suraj. For Java 8 all videos, Plz contact our online team durgasoftonlinetraining@gmail.com or call us on this number +918885252627, 7207212427/28
Hello Veerendranath. Use the below links to access Durga Sir Videos and Downloadable Materials with Life-Time Access. 1. Oracle Java Certification: Shortest Way To Crack OCA 1Z0-808 Link: goo.gl/vcMKjz 2. Java 8 New Features In Simple Way Link: goo.gl/F2NfZi 3. Java 9 New Features In Simple Way : JShell, JPMS and More Link: goo.gl/s9PP1p 4. Complete JDBC Programming Part-1 Link: goo.gl/uT9sav 5. Complete JDBC Programming Part-2 Link: goo.gl/VmhM7t Regards DURGASOFT Online Team +918885252627, 7207212427/28 durgasoftonlinetraining@gmail.com
import java.util.*; public class HelloWorld { public static void myMethodImplementation() { return "Hello from myMethodImplementation"; } public static void main(String[] args) { // Method reference using MyClass::myMethodImplementation MyFunctionalInterface myLambda = HelloWorld::myMethodImplementation; // Using the method reference myLambda.myMethod(); } } interface MyFunctionalInterface { String myMethod(); } This example is giving compile time error, when there is no restriction on return type. Why this code resulting in error?
Best things in the world are free...And so these java tutorial...thanks a lot
Hello Kamal.
Thanks for your valuable feedback. It will boost us to do new things. Please subscribe to get updates about new videos.
You can view all other Java 1.8 New Feature Videos by Durga sir in the following link:
goo.gl/ujVNJH
God bless you Durga sir
This series really helped me a lot to learn Java8 concepts.....Durga Sir made the concepts extremely easy...Thanks a lot... :)
Hello Rishikesh.
Thanks for your valuable feedback. It will boost us to do new things. Please subscribe to get updates about new videos.
You can view all other Java 1.8 New Feature Videos by Durga sir in the following link:
goo.gl/ujVNJH
Sir you are Java god for me, your channel is simply a gold mine.
Lots of love, Thanks for sharing all these stuffs.
Hello Mukesh.
Thanks for your valuable feedback. It will boost us to do new things. Please subscribe to get updates about new videos.
You can view all other Java 1.8 New Feature Videos by Durga sir in the following link:
goo.gl/ujVNJH
This is just for your reference friends.
please watch complete video you will learn lot of things.the way Durga sir explain is amazing.
1. Method and constructor reference are alternative to lambda expression.
2. Main advantage of using these is code re usability.
3. we can refer any method with class_name followed by double colon(::) then method name.
Example : Test::m1();
4.(**) : Functional interface methods can be mapped to our specified method by using :: operator , this is called method reference.
5. to call non-static (instance) method we can use object reference instead of class name
Syntax : Test t = new Test();
t::method_name
6.if you have any existing method then go for method reference instead of writing lambda expression.
Rule(**) : while using MR make sure that method argument must be same.
---------------Constructor reference--------------------------
When we can use CR ?
When FI method return object then we should go for CR.
Syntax : class_name::new
1 ) With CR you can refer FI method with class constructor.
Thank you Durga solutions. I'm happy to get my first like from Durga sir itself. :)
Thanks Hemant .. Recap All Things That We Learned in Video.
Thank you sir for this Java 8 series.
I used to feel this one as difficult concept
Hence never used. But after going through this series I got full confidence.
This one is really helpful .... Always stay safe and healthy sir....
Hello Zenith.
Thanks for your valuable feedback. It will boost us to do new things. Please subscribe to get updates about new videos.
You can view all other Java 1.8 New Feature Videos by Durga sir in the following link:
goo.gl/ujVNJH
First of all thank you so much for this series. I have one small doubt-
As you said, *only restriction is argument type must be matched* ( 23:41 ). Can you tell why following code snippet working fine?
BiConsumer biConsumer = ArrayList::add;
ArrayList li = new ArrayList();
biConsumer.accept(li, "Tanmoy");
System.out.println(li);
Hello Tanmoy.
Plz contact our online team durgasoftonlinetraining@gmail.com or call us on this number +918885252627, 7207212427/28
I hate the use of the raw types in your example, but what is the problem? A String is an Object.
There are only 2 GOD's Of Java In India & Maybe Whole World. One is Ramesh Sr From LARA Tech Banglore & Other Is DURGA Sr From DurgaSoftwareSolution Hydrabad. Thanks For The Multiverse GOD Sri Hari Vishnu - He Inspired One Of The GOD To Give Free Education On UA-cam...Feeling Blessesd.
Hello Shubham Agarwal.
Thanks for your valuable feedback. It will boost us to do new things. Please subscribe to get updates about new videos.
You can view all other Java 1.8 New Feature Videos by Durga sir in the following link:
goo.gl/ujVNJH
Hi sir! Arguments types must be matched in method reference. But in the below e.g. even though arguments type are note same, code is executing fine. (see e.g. below)
public interface Interf {
public void add(int x, int y);
}
public class Test {
private void sum (int m, long n)
{
System.out.println("Sum : " + (m+n));
}
public static void main(String[] args) {
Test t = new Test();
Interf i1 = t::sum;
i1.add(100, 200);
}
}
Instead of passing 200 ,try passing a value which is out of Integer scope.
Hello Sir , your explanation is so simple so that anyone can understand easily, just started to watch your vidoes. I never understood generics clearly but from your tutorials now i got more confidence in generics. Also waiting for your Javascript Nashorn videos. Cant't thank you enough.
Hello Srikanth.
Thanks for your valuable feedback. It will boost us to do new things. Please subscribe to get updates about new videos.
For Javascript Nashorn videos,
Plz contact our online team durgasoftonlinetraining@gmail.com or call us on this number +918885252627, 7207212427/28
Awesome Awesome Awesome..........Superb Durga sir......
Hello Shekar.
Thanks for your valuable feedback. It will boost us to do new things. Please subscribe to get updates about new videos.
Use the below links to access Durga Sir Videos and Downloadable Materials with Life-Time Access.
1. Oracle Java Certification: Shortest Way To Crack OCA 1Z0-808
Link: goo.gl/vcMKjz
2. Java 8 New Features In Simple Way
Link: goo.gl/F2NfZi
3. Java 9 New Features In Simple Way : JShell, JPMS and More
Link: goo.gl/s9PP1p
4. Complete JDBC Programming Part-1
Link: goo.gl/uT9sav
5. Complete JDBC Programming Part-2
Link: goo.gl/VmhM7t
Regards
DURGASOFT Online Team
+918885252627, 7207212427/28
durgasoftonlinetraining@gmail.com
Method references explanation is👌
Hello Friend.
Thanks for your valuable feedback. It will boost us to do new things. Please subscribe to get updates about new videos.
You can view all other Java 1.8 New Feature Videos by Durga sir in the following link:
goo.gl/ujVNJH
easy and expert means Durga sir🙌
Hello Friend.
Thanks for your valuable feedback. It will boost us to do new things. Please subscribe to get updates about new videos.
You can view all other Java 1.8 New Feature Videos by Durga sir in the following link:
goo.gl/ujVNJH
Thank you so much durga sir for all the videos.
It will be great for us if you will upload remaining video of java 1.8 features.
Hello Bipin Jaiswal.
Thanks for your valuable feedback. It will boost us to do new things. Please subscribe to get updates about new videos.
Use the below links to access Durga Sir Videos and Downloadable Materials with Life-Time Access.
1. Oracle Java Certification: Shortest Way To Crack OCA 1Z0-808
Link: goo.gl/vcMKjz
2. Java 8 New Features In Simple Way
Link: goo.gl/F2NfZi
3. Java 9 New Features In Simple Way : JShell, JPMS and More
Link: goo.gl/s9PP1p
4. Complete JDBC Programming Part-1
Link: goo.gl/uT9sav
5. Complete JDBC Programming Part-2
Link: goo.gl/VmhM7t
Regards
DURGASOFT Online Team
+918885252627, 7207212427/28
durgasoftonlinetraining@gmail.com
Thank you so much sir for this videos. Appreciate if you upload videos for Streams concept as well.
Hello Kararawala,
Thanks for your valuable feedback. It will boost us to do new things. Please subscribe to get updates about new videos.
Use the below links to access Durga Sir Videos and Downloadable Materials with Life-Time Access.
1. Java 8 New Features In Simple Way
Link: goo.gl/F2NfZi
2. Java 9 New Features In Simple Way : JShell, JPMS and More
Link: goo.gl/s9PP1p
3. Complete JDBC Programming Part-1
Link: goo.gl/uT9sav
4. Complete JDBC Programming Part-2
Link: goo.gl/VmhM7t
Regards
DURGASOFT Online Team
+918885252627,7207212428/27
durgasoftonlinetraining@gmail.com
Kindly do videos on streams,optionals and filters
East or West Durga software is the best thank you so much sir plz sir upload more video just like java 9,10,11,12,13 plz sir upload all java feature plz plz plz💓💓💓💓🙏🙏🙏🙏🙏🙏🙏🙏🙏
Hello Spring Masti.
Thanks for your valuable feedback. It will boost us to do new things. Please subscribe to get updates about new videos.
Plz contact our online team durgasoftonlinetraining@gmail.com or call us on this number +918885252627, 7207212427/28
@@DurgaSoftwareSolutionsI'm already subscriber before one year but sir how can contact online team
Hello Spring Masti.
Plz contact our online team durgasoftonlinetraining@gmail.com or call us on this number +918885252627, 7207212427/28
Thank you so much for this series of videos. It helped me alot to understand.
Hello Esmail.
Thanks for your valuable feedback. It will boost us to do new things. Please subscribe to get updates about new videos.
You can view all other Java 1.8 New Feature Videos by Durga sir in the following link:
goo.gl/ujVNJH
I watched core Java video in 2017, since that time only I have subscribed Sir 😊. By the way the way you are delivering the knowledge is awesome even first stand class student can catch it. The Person who are teaching like this, only for them now India's worst student is also getting involved in a reputed MNC company. Keep it up Sir. God bless you and your team and your family 👍👍👍
After watching this video I made one conclusion:
JAVA IS NO LONGER JAVA.
While it didn't bring Java all the way into the modern world, it really did help things a LOT!
😭
Nice explanation. Thanks, Durga Sir
Hello Zakir Hussain.
Thanks for your valuable feedback. It will boost us to do new things. Please subscribe to get updates about new videos.
You can view all other Java 1.8 New FeatureVideos by Durga sir in the following link:
goo.gl/ujVNJH
Enjoying this Java 8 series
Hello Ravi.
Thanks for your valuable feedback. It will boost us to do new things. Please subscribe to get updates about new videos.
You can view all other Java 1.8 New Feature Videos by Durga sir in the following link:
goo.gl/ujVNJH
Noo i checked it..Return type checking is also must in method reference.. It also must be same..
no return type is not causing any issue, but han vi returned value ka use ni rhega koi but error v ni aayega
Salute to you sir you are great
Hello Friend.
Thanks for your valuable feedback. It will boost us to do new things. Please subscribe to get updates about new videos.
You can view all other Java 1.8 New Feature Videos by Durga sir in the following link:
goo.gl/ujVNJH
Thank you sir for the series!! Can you clear the method reference return types because its giving error when I use different return types?
Hello Jadhav.
Plz contact our online team durgasoftonlinetraining@gmail.com or call us on this number +918885252627, 7207212427/28
Thanks a lot for the video. However you did not mention instance method of an arbitrary object which is written as static method. Coul you please explain what is the difference between " Instance methods of an arbitrary object of a particular type" and "Instance methods of particular objects"
Thanks in advance
Hello Ozgur.
Thanks for your valuable feedback. It will boost us to do new things. Please subscribe to get updates about new videos.
Plz contact our online team durgasoftonlinetraining@gmail.com or call us on this number +918885252627, 7207212427/28
Sir you said that for method reference only arguments are same.. not required same return type or same access modifiers so what about this code..
public class Main {
static void add(int a,int b){
System.out.println(a+b);
//return a+b;
}
public static void main(String[] args) {
Interf i = (a,b)->a+b;
System.out.println(i.sum(3,4));
Interf i1 = Main::add;
i1.sum(3,4);
}
}
interface Interf{
int sum(int a,int b);
}
Output is :
Compiler error: incompatible types: bad return type in method reference
Interf i1 = Main::add;
^
void cannot be converted to int
1 error
Hello Siddhvinayak.
Plz contact our online team durgasoftonlinetraining@gmail.com or call us on this number +918885252627, 7207212427/28
This Video is fire 🔥
nice info, can we get some understanding on collections enhancements(streams,collectors........) in the upcoming videos..
Hello Vamsi.
Plz contact our online team durgasoftonlinetraining@gmail.com or call us on this number +918885252627,7207212427/28
thank you very much sir for this video
Sir i am eagerly waiting for your lecture on stream api
Hello Subhash. For Stream API videos,
Plz contact our online team durgasoftonlinetraining@gmail.com or call us on this number +918885252627,7207212427/28
Sir, you said arguments types must be matched in method reference
But it worked without even argument matching
Correct me if iam wrong
Hello Dileep.
Plz contact our online team durgasoftonlinetraining@gmail.com or call us on this number +918885252627, 7207212427/28
@@DurgaSoftwareSolutions This is absolutely non-sense why he has to call you? if you have any answer you can put here so that it will help everyone. Please don't simply add the response saying contact online it should have some meaning.
@@santhoshdk6633 maybe he is different person 🤔
Hi .. why Durga sir is stopped java 10 11.. etc any course available on latest version by durga sir ?
Let me know
Hello Vamshi.
Plz contact our online team durgasoftonlinetraining@gmail.com or call us on this number +918885252627, 7207212427/28
Hello sir,
Your videos are so good, can you please share documents as well.
Hello Tarun.
Thanks for your valuable feedback. It will boost us to do new things. Please subscribe to get updates about new videos.
For Python material,
Plz contact our online team durgasoftonlinetraining@gmail.com or call us on this number +918885252627, 7207212427/28
hello sir I have a doubt u said that return type doesn't matter but i think it only doesn't matter when the return type of method of functional interface is void. Please correct me if I am wrong.
Hello Sachin.
Plz contact our online team durgasoftonlinetraining@gmail.com or call us on this number +918885252627,7207212427/28
You are correct Sachin Singh. It doesn't matter only if the return type is void. If the method in interface has any return type other than void, it must match with the implementation method. Else we will get compile time exception. (Compiler will give left & right)
@@ragulkrishnan5041 yes , return type is Mandi teary except void
Hi sir,
What about stream api and garbage collection changes in java 8.
Please upload those videos.
Hello Vishal,
Use the below links to access Durga Sir Videos and Downloadable Materials with Life-Time Access.
1. Java 8 New Features In Simple Way
Link: goo.gl/F2NfZi
2. Java 9 New Features In Simple Way : JShell, JPMS and More
Link: goo.gl/s9PP1p
3. Complete JDBC Programming Part-1
Link: goo.gl/uT9sav
4. Complete JDBC Programming Part-2
Link: goo.gl/VmhM7t
Regards
DURGASOFT Online Team
+918885252627,7207212428/27
durgasoftonlinetraining@gmail.com
Also JODA Time API
Hey sir durga! you said that the return type reference method is irrelevant, but that's true only when the function method of a functional interface returns void. Take for instance Predicate where the test() method returns boolean. if the referenced method returns something apart from boolean, an error will be displayed. Any explaination for that ?
Hello Artist.
Plz contact our online team durgasoftonlinetraining@gmail.com or call us on this number +918885252627, 7207212427/28
15:50
Optional classes video link require please share
Hello Shashi.
Plz contact our online team durgasoftonlinetraining@gmail.com or call us on this number +918885252627, 7207212427/28
Thank you
Thanks Sir
great
Hello Ahmid.
Thanks for your valuable feedback. It will boost us to do new things. Please subscribe to get updates about new videos.
You can view all other Java 1.8 New Feature Videos by Durga sir in the following link:
goo.gl/ujVNJH
Not sure what is the difference between t1.m1(); and t1::m1;
Hello Akshay.
Plz contact our online team durgasoftonlinetraining@gmail.com or call us on this number +918885252627, 7207212427/28
t1.m1() calls the m1() method immediately, t1:m1 provides a reference to what will get called later when the method reference is applied....you got that shortly after you posted it, no?
Also with t1::m1, you can refer even the private methods of other class
Hi sri ineed java8 full course
Hello Ashok.
Plz contact our online team durgasoftonlinetraining@gmail.com or call us on this number +918885252627, 7207212427/28
Hi sir I need java8 full course
Hello Ashok.
Plz contact our online team durgasoftonlinetraining@gmail.com or call us on this number +918885252627, 7207212427/28
descriptor's return type not explained
Hello Raja.
Plz contact our online team durgasoftonlinetraining@gmail.com or call us on this number +918885252627,7207212427/28
Sir, I want java 1.8V material
Hello Atul Tyagi. For Java 1.8 Material,
Plz contact our online team durgasoftonlinetraining@gmail.com or call us on this number +918885252627, 7207212427/28
ee janmalo kakapoina vache janmalo meeku gudi kattistha sir
I want all Java8 videos.
Anyone have it?
Hello Suraj. For Java 8 all videos,
Plz contact our online team durgasoftonlinetraining@gmail.com or call us on this number +918885252627, 7207212427/28
👏🥳🥳👏
Any one have java 8 nd 9
Hello Veerendranath.
Use the below links to access Durga Sir Videos and Downloadable Materials with Life-Time Access.
1. Oracle Java Certification: Shortest Way To Crack OCA 1Z0-808
Link: goo.gl/vcMKjz
2. Java 8 New Features In Simple Way
Link: goo.gl/F2NfZi
3. Java 9 New Features In Simple Way : JShell, JPMS and More
Link: goo.gl/s9PP1p
4. Complete JDBC Programming Part-1
Link: goo.gl/uT9sav
5. Complete JDBC Programming Part-2
Link: goo.gl/VmhM7t
Regards
DURGASOFT Online Team
+918885252627, 7207212427/28
durgasoftonlinetraining@gmail.com
import java.util.*;
public class HelloWorld {
public static void myMethodImplementation() {
return "Hello from myMethodImplementation";
}
public static void main(String[] args) {
// Method reference using MyClass::myMethodImplementation
MyFunctionalInterface myLambda = HelloWorld::myMethodImplementation;
// Using the method reference
myLambda.myMethod();
}
}
interface MyFunctionalInterface {
String myMethod();
}
This example is giving compile time error, when there is no restriction on return type.
Why this code resulting in error?
Hello Ankit.
Plz contact our online team durgasoftonlinetraining@gmail.com or call us on this number +918885252627, 7207212427/28
Thank you sir
Thanks sir