Комментарии:
Doubt: Sir, Let say I have need to write an interface with default method then Can I use abstract class? If yes then what is need for default methods concept in interfaces. If No then why?
ОтветитьHi sir,
Present where your working
Interf.m1();// valid
// m1(); in valid
//Test.m1(); in valid
//Test t = new Test();
//t.m1(); in valid
Oracle should change the name of Java founder....it should be like "Java is developed by Durga sir".
Your knowledge, presenting in very simple words strategy makes layman can understand Java and no one can match you I m sure 😅.
You are doing really good work sir.
Thank so much for this.🙏🙏🙏🙏
Thank you Durga Sir .
ОтветитьThank you sir!!
ОтветитьSir i have been watching your video since 3 months and i can see my confidence has increased after watching you tutorial
Thanks sir keep supporting us
Thanks Sir.
Ответитьjust started watching your video for attending interviews...U r amazing sir...no words!!!
Ответить🥳🥳👏🥳👏🙏
ОтветитьSir, could you please share the java8 pdf
ОтветитьThank you so much Sir.....
ОтветитьCould you please make a session on optional class in jdk 1.8
ОтветитьI am able to add hashcode method in interface. I did not get any compilation error interface Testinthash1
{
default void m9()
{
System.out.println(" Inside Test int hash method");
}
default int hashcode()
{
return 10;
}
}
public class HashcodeInJava8 implements Testinthash1
{
public static void main(String[] args)
{
DefaultMethodInJava8 t1 = new DefaultMethodInJava8();
t1.m9();
System.out.println(t1.hashcode());
}
}
sir aap ki jeetani bhi tarif ki jaye kaam sir
Ответитьnew Test().m1(); will also work at duration 1:1
Ответить❤️❤️❤️
ОтветитьI searched no.of websites videos, but I didn't got why they given static and default method. But after watching your video I can give left and right to anyone. Thanks sir
ОтветитьCan we write multiple default method in interface ?
Ответить❤️❤️❤️❤️
ОтветитьBut sir,
I know that interfaces are used to provide 100% i.e. absolute abstraction.
but since Java8 interfaces can have concrete methods too.
Now can we still call it 100% abstraction????
If anyone curious about this, please reply.
Thank You So Much @Durga_Software_Solutions for the playlist of java 1.8v
ОтветитьExcellent
ОтветитьYou are awesome sir!! The way you explaining the concepts which i taught was difficult but after watching your videos my opinion changed and it is so clear also helpful and finished 4 sessions and i going to finish all of them soon..
ОтветитьPlease lizen !! Every Concept is the mowst important concept for Durga Sir.
ОтветитьYour teaching is awesome............. awesome...........
ОтветитьThanks, Sir
Ответитьclasses looks bloody classes to Durga sir since java8. :)
Great explanation sir.
if you don't like this video and not share with your friends then compiler will give you left and right
Ответитьsuppose a functional interface has abstract method and default method scenario. Does implementation class need to "extend" the FI and then override it or can we achieve thru lambda expression?
Example:
interface interf
{
public void m1 ();
default void m2 (){
System.out.println("default Method");
}
}
public class Main{
public void m2(){
System.out.println("overridden m2");
}
public static void main(String[] args) {
interf f = ()-> System.out.println("m1 method");
f.m1();
f.m2(); - printing the interface SOP not m2 of the Main class hence not getting overridden
}
}
how come we can print m2 method of Main class. if we create object of Main class and print means then there is no use of
having default method in interface.
Can you please explain this concepts
how come comparator is functional interface since it has two methods - compare and equals . If equals methods is overridden in
java.lang.object. then why is the default int hashCode() is not allowed in the Functional interface even it is present in the java.lang.object class. Kindly explain this concepts really confusing.
Can u override static methods in interface?
ОтветитьThanks a lot sir...I have watched complete playlist in a day..I am employee to Virtusa..This Playlist saved my Training..
ОтветитьI am following this channel from last 3 months. Now I am so much confidence in Java Language. Thank you for your valuable tutorial sir.Huge Respect from my side.
ОтветитьOnly person to call a java class as bloody!!
Thats our Durga Sir!!!
that last sweeper and IAS officer example is amazing
ОтветитьBig fan of your teaching sir.
If possible can you please make a video on how to use Lombok feature.
😘
I love it .. When u laugh while asking tricky questions 😂😂
ОтветитьThe Good thing is that Durga sir explaining the concepts should be understood by all the members in the team, not only for one. Salute for your patience sir. Some People take money but won't give such an explanation.
ОтветитьWill left.m1(); not work ? Or only left.super.m1() will work when class test implements left, right?
ОтветитьIf a class contains all static methods, then no need to create the object to access those methods. However static methods will be loaded into the JVM at the time of compilation only not related to runtime. Then how a class with static methods degrades the performance as compared to interface with static methods ?
In my view while defining utility methods in class as a static methods or in an interface as a static methods does not impact the performance.
Please correct me in case my assumption is wrong. Looking forward for your valuable comment on my assumption.
Awesome,👍
If you require a sweeper then why you go for IAS officer 👌( Static method in Interface )
very good videos explaining java 8 concepts , by the way can you post one video about java 8 memory structure and demon thread
Ответитьthanks
ОтветитьWhy cant we override default m1() method using a protected modifier in child or implementation class ?
ОтветитьObjects passing to methods is pass by value or pass by reference ?????????
Ответитьi want to POSTMORTEM subject like YOU! :)
Ответить