I never thought that I will learn java ever but one day my friend told about naveen automation labs and when i saw first video. that day i thought yes I also can learn java..Thanx a lot Naveen.
@prashanawali15255 жыл бұрын
I wonder.. who are these five those put dislike !! Naveen you are really superb. Thank you
@rickyjindal9993 жыл бұрын
In java 9 we can create private method under interfaces. And in java 8 default concrete method and static methods are also available. if we are create any default method in interface in that case we must have to use the defect keyword Eg: "default void display() { -- }" Thanks naveen your videos are amazing
@shrutidabke7084 жыл бұрын
Naveen, you have explained Interface concept in very simple way. I have learn it now in real sence.Thanks & keep going..... :)
@minakshigulia89974 жыл бұрын
i lv your way of teaching so much ,it makes me feel like ..............m apse pdhti rhu pdhti rhu pdhti rhu.............................
@AishwaryaShinde-j8p8 ай бұрын
I never understood interface concept so clearly, Thank you Naveen !! Awesome way of explaining.
@MultiPrasad995 жыл бұрын
Nice video Naveen. Just one correction Java 8 allows to have static and default methods in interfaces
@mohmashooqdowlati79334 жыл бұрын
Outstanding Job Mr. Naveen! May God Bless You.
@sureshsubramaniyan32015 жыл бұрын
Really very useful and understood interface Concept and Multiple Inheritance. Thank you once again
@zarifjamshidi80504 жыл бұрын
Excellent explanation and awesome videos. thanks Mr.Naveen
@ashwinikunapareddy27734 жыл бұрын
Hi Naveen, Thank you so much for wonderful videos..
@saurabht093 жыл бұрын
Very soon we will see 1M subscribe r for Naveen..keep going 🙏🙏
@ItsMeSimna6 жыл бұрын
Thanks Naveen!!Ur videos are awesome!!
@tarekhasan85454 жыл бұрын
Hi, Sir, I absolutely finding these videos very helpful, Where i had no knowledge in Java . I was following the videos serially but got confused after 14 th video. which one should i follow after Interface concept
@ashokchandola3 жыл бұрын
15th 😂😂 Array vs array list
@nitin.parihar8203 жыл бұрын
Hi Naveen, Thanku for such clarity on every topic. Just a small request, please increase the font while writing the code in eclipse. It is somewhat difficult to get a good view. Thanks a ton.
@minanurjan50076 жыл бұрын
you are amazing Naveen~!~!thank you very much, helped me a lot. you explained so much easy way to solved all my problems
@naveenautomationlabs6 жыл бұрын
Thanks for watching Nurjan. Keep learning.
@OptionTraderDiary5 жыл бұрын
Naveen, looks like this video has to be modified since from Java 8, Static methods are allowed in interface and there is also a new type called default for method declaration.
@MSD_Explorar5 жыл бұрын
Hi Navin.. I am one of your student .. i Just love your videos and thanks a lot for that.. One small thing i noticed while practicing interface is that only variable declaration (i.e. int minBal; ) is not allowed in interface we have to initialize them (e.g int minBal = 4500). otherwise it gives "Exception in thread "main" java.lang.Error: Unresolved compilation problem: The blank final field minBal may not have been initialized"
@DebunkSensibly3 жыл бұрын
Thank you Naveen. It really helped me
@mohitbansal99384 жыл бұрын
Hi Naveen, as per the video we cannot create static method in Interface but I have created a static method in interface with method body and second you said, we can't create method body, but we can create method body in Interface. Example for static method is public static void show(){ System.out.println("Static show method");} Example for a method with method body is: public default void debit(){ System.out.println("debit method");}
@naveenautomationlabs4 жыл бұрын
After jdk 1.8 it's allowed to create static method and default method with body. But with non static and default method, you can't give the method body.
@mohitbansal99384 жыл бұрын
@@naveenautomationlabs ook
@naveenautomationlabs4 жыл бұрын
kzbin.info/www/bejne/gqWWhWuVqtmNr9k refer this video
@divyaupadhyay35345 жыл бұрын
Hi Naveen, As you said We will not able to create main method and static method in interface.But I am able to do it.
@gigapapi3 жыл бұрын
Is there a separate video for multiple inheritance
@nazmak41943 жыл бұрын
Very good work sir... One doubt When we cant write static methods in interface why we need static variables(why variable are static by default and what is the use of it)??
@satyajeetkumar54645 жыл бұрын
Hi Naveen, please make a video on multi threading concept and synchronization in java. Or if there is a video of yours for these topics please share the link.
@justinraj34945 жыл бұрын
nice explanation brother ..easy to understand
@jashanpreetkaur16775 жыл бұрын
Hi Naveen I have a Question here.As you mentioned in the video no static methods are allowed in the Interface.But as per my below code,i am not getting any error.Kindly answer . public interface Con { int a = 10; static void sum() { System.out.println("hey"); } }
@naveenautomationlabs5 жыл бұрын
This is allowed after jdk1.8. You can have static and default methods in interface.
@tapaskhandai6 жыл бұрын
Hi Naveen method overriding is run time ploymorphism
@niranjanpatil25042 жыл бұрын
Hi Sir, as per my understanding inheritance is called is-a relationship and interface is has-a relationship.
@chiragbansod40033 жыл бұрын
I think there is slight confusion here … Inheritance means Is-A relationship and aggregation means Has-a relationship
@Tamizh1442 жыл бұрын
I have a doubt if we have same name interface method like debit() this will available in both USbank and Uk bank but those bank have different properties.on that time how can we define method body in testbank class.
@deepakrevankar17173 жыл бұрын
Sir what is the significance about minbal variable ? as per minimum balance set by US bank it should be 100. but in child class can alter it to lower
@johnrussel72714 жыл бұрын
In static and non- static video you mentioned like a static variable can be called directly by the variable name or by class name dot variable but in this case why we are not able to call the variable directly even its though its static in nature
@michaelgathogo78786 жыл бұрын
Is multiple inheritance possible in java or did you mean multiple level inheritance? what is different between multi-level inheritance and multiple inheritance?
@dillikumar70746 жыл бұрын
multilevel inheritance can be acheived by inheritance ,.....multiple inheritence can be acheived by interfaces in java.... differnce b/n multilevel and multiple is .... multi-level inheritance : suppose A is the super class ,A has a child named B, and B also have child called C, A(grand father)--->B(father)---> C (child) ---> multilevel inheritence each child has only one parent. multiple-inheritance : Here single child can have more than one parent .....
@WhiteKnight_OG7 ай бұрын
Thank you Sir
@anamicasingh68373 жыл бұрын
Just one small doubt.. Can 2 different Interface have same method . If yes, how can we call them in single class.
@naveenautomationlabs3 жыл бұрын
you can have same methods in 2 diff interfaces. But you need to override only once in child class and write buss logic accordingly.
@anamicasingh68373 жыл бұрын
@@naveenautomationlabs Thank you so much... Your videos are really really helpful.
@chethanasurpur98666 жыл бұрын
Hi Naveen, I am a little confused. If we can create an object of any class anywhere as long as the class is public, then why do we need inheritance coz you can only inherit public classes. Please explain this part.
@dillikumar70746 жыл бұрын
Hai,suppose if they are 10 ten classes with public , you need to create object for 10 classes right ? to acces that class methods, unnecessarily wasting of memory right? if we inherite only one time object creation is enough right? I guess it is correct assumption, if wrong plz correct me.
@RaviKumar-hz8cf7 жыл бұрын
well explained
@sanjupole14914 жыл бұрын
What if, if both the interface has same method then which method would get implemented
@tejastoley67145 жыл бұрын
we can define static method in parent interface but we can access that method by using only Interface name.
@AdityaSingh-wy7xe5 жыл бұрын
Can you please make a pictorial memory representation with properly stating the memory names, I am bit confused regarding the memory representation of the following: --USBank b=new HSBCBank()
@ramyabaskaran88596 жыл бұрын
Thank u naveen
@CodeAutomateHub3 жыл бұрын
hi naveen what to do when two interface have same methods and same signature the test class calls which method????
@naveenautomationlabs3 жыл бұрын
Child class will implement only one method and test class will call that method.
@CodeAutomateHub3 жыл бұрын
@@naveenautomationlabs so which method will be implemented interface 1 or interface2??
@CodeAutomateHub3 жыл бұрын
oh understood @Naveen AutomationLabs i just implemented it practically
@bhavanagyarampalli89832 жыл бұрын
Thank a lat sir
@sridhar21277 жыл бұрын
Hi Naveen, I have a small doubt in calling a static variable in this video. In your earlier video, you said there are two ways to call a static variable 1. Calling directly 2. Calling with ClassName.variable In this time - kzbin.info/www/bejne/l5mToaFuZq6Xerc But here why it not accepting when we call it directly
@praveen420ify6 жыл бұрын
because min_bal is not part of same class. U can call direcly when variable is part of same class.
@kgip113 жыл бұрын
If static methods not allowed in Interface then how come variables are allowed?
@prafullmanjare72914 жыл бұрын
Naveen please put this code link in Description So that easy to download Thank you
@chnagireddy37923 жыл бұрын
What if two interfaces we are implementing have same methods.
@hemasahoo49085 жыл бұрын
sir mutualfund s.o.p statement is not printing
@gangadharareddy5 жыл бұрын
You should create object in TestBank. BrazilBank bb = new HSBCBank(); Then try bb. U will get mutual fund()
@jerinthomas32834 жыл бұрын
How the mutual fund run in main method?
@vijayapriyapalanikumar62135 жыл бұрын
I have one doubt, what happen if us bank and uk bank have same method name For ex: credit method of uk bank Credit method of us Bank
@dilpudara7775 жыл бұрын
It docent matter. because normally you create object from interface call the method. you can call what ever the method you want.
@vhvl38885 жыл бұрын
i always watch your videos at 1.5 speed rate
@naveenautomationlabs5 жыл бұрын
Why?
@vhvl38885 жыл бұрын
@@naveenautomationlabs it actually helps in noticing concept and gets finish in half of the time moreover if i neeed to slow i can always pause and rewind.
@swapnilbodade13365 жыл бұрын
yes thats best way to revise. he has crystal clear explanation, no redudent talk
@happylife89435 жыл бұрын
java 8 allows static methods in interface
@arabindamohanty21903 жыл бұрын
but I am able to create main method inside an interface
@ramyab69616 жыл бұрын
can we declare the same method for different Interface?