8.20 What is Interface in java with example

  Рет қаралды 172,069

Telusko

Telusko

Күн бұрын

Пікірлер
@praveenhitnalli
@praveenhitnalli 8 жыл бұрын
One of the best teaching / presentation on this Java Interface. None of the book can replace your this presentation. Thanks a ton ... you're really doing a great job. Well explained. Keep going :) Key take away from this session for me is "A obj = new B();" . Since many days I was always wondering in Selenium Webdriver why we always use "WebDriver driver = new FirefoxDriver();" not ""WebDriver driver = new WebDriver();". This is called INTERFACE and importance of this in WebDriver, which is an API. Thank you again for your efforts on making these sessions.
@itsme4unas
@itsme4unas 8 жыл бұрын
I agree..Quality stuf
@usfeb14
@usfeb14 7 жыл бұрын
You made my day with your above example :)
@zehra._153
@zehra._153 3 жыл бұрын
This is sooo true 💯💯💯
@edwintom3123
@edwintom3123 4 жыл бұрын
This lecture remains unbeatable till in 2020. Hats 0ff Sir
@mashapimatimba8063
@mashapimatimba8063 4 жыл бұрын
Brilliant... Watching this in 2020 and its helped me so much.
@ajeenkyadeshmukh857
@ajeenkyadeshmukh857 4 жыл бұрын
Does this playlist contain both core and advance java...
@eshwardath8182
@eshwardath8182 3 жыл бұрын
Me watching in 2021 😌
@mradityapatnaik
@mradityapatnaik 4 жыл бұрын
Remarkable !!! Never seen anyone explaining inheritance better than this.
@shreyastasamal3549
@shreyastasamal3549 5 жыл бұрын
Sir, this is one of the best tutorials, I've programmed in android and learned the concept from various sources and books but your explanation is super clear. The concepts are much clearer than before.
@rukshanarizyan7931
@rukshanarizyan7931 2 жыл бұрын
watching this in 2022 and still so useful. Thank you so much you literally are saving me for my exams this week. Hours of lectures simply and clearly explained in few mins
@nithyashreenaidu8357
@nithyashreenaidu8357 4 жыл бұрын
you are awsome sir..watching videos in 3rd year for placements..chala thanks sir...you explain it in simple bits
@VivekKumar-ky6tm
@VivekKumar-ky6tm 7 жыл бұрын
You are the best java teacher I had ever seen , you are the best. Your style of teaching is best and well designed
@aces8481
@aces8481 2 жыл бұрын
holy this video quality is throwback for sure lol you've come such a long way
@RohitGupta-qd7gj
@RohitGupta-qd7gj 8 жыл бұрын
As mentioned about Security feature with interface, it is true with every class or abstract class by using the below statement: Baseclass obj= new Derivedclass() The above is true for all, not exclusively for interfaces. That means its not only interfaces that can provide security.
@nynra6584
@nynra6584 8 жыл бұрын
Yeah! You are correct. And to mention security in the term of interface causes a beginner like me to get confused as one tries to understand the concept of interface by distinctifying this character of security belonging only to interface. Most videos are clear in Telusko but few don't quite come up to the point.
@sumitsingh9987
@sumitsingh9987 4 жыл бұрын
I mean , what an exceptional teacher, thankyou so very much for making it all so much easy to visualise The way you present it , is required at the schools and colleges Wish teachers also watch your videos and understand that this is the required technique of delivering it, to maximum number of students 😃😃😃👌
@rasikadeshpande4710
@rasikadeshpande4710 6 жыл бұрын
How can I thank u? Explained as nicely. Easy to learn. Thank u so much.. U r doing very good job by sharing your knowledge.
@letsdoit6438
@letsdoit6438 3 жыл бұрын
No one teach better than you sir outstanding explanation
@suyashsharma7088
@suyashsharma7088 6 жыл бұрын
You are literally the best on KZbin for OOP! Thank you very much! :D
@zehra._153
@zehra._153 3 жыл бұрын
Sir your explanation is awesome !!! Best among all other youtubers !!! ❤❤❤ I wish you great success ahead 🙌🙌❤
@MsWonderlands
@MsWonderlands 7 жыл бұрын
loved it !! Thanks much !! Specially the How and Why of object creation referring to the Interface but the memory creation of the class that implements the Interface .
@rameshv2762
@rameshv2762 3 жыл бұрын
Excellent .watching this video in 2021 which uploaded in 2015 helping a lodddd 😍
@sagar94525
@sagar94525 4 жыл бұрын
sir this concept was new and very awesome....thanks for tutoring us...love you..
@cibisuren2334
@cibisuren2334 4 жыл бұрын
Finest java lessons! Hats off sir
@Zeegi
@Zeegi 2 жыл бұрын
Wow.....best and amazing explaination..🔥
@arsla_saleem8416
@arsla_saleem8416 7 жыл бұрын
ur videos are just perfect :) thank you so much :) there couldn't be any better explanation than this!! :)
@rsphantom236
@rsphantom236 3 жыл бұрын
Amazing video, this clears all the concepts. :)
@SagarSagar-ro3fj
@SagarSagar-ro3fj 6 жыл бұрын
Short crisp and clear in 8 mins..
@401-vhatkaramit8
@401-vhatkaramit8 9 жыл бұрын
ek number explanation diya he
@duylai7705
@duylai7705 7 жыл бұрын
best teacher ever :D
@mithuns8410
@mithuns8410 8 жыл бұрын
Awesome every one should watch this video!!!
@swethachelliah247
@swethachelliah247 2 жыл бұрын
really very helpful thank u so much sir❤️
@sijunaaetta321
@sijunaaetta321 4 жыл бұрын
Thank you so much for clear understanding about interface.
@gandhimathi5093
@gandhimathi5093 5 жыл бұрын
Thank you Sir. It is clear Explanation
@vigneshwarvicky5048
@vigneshwarvicky5048 6 жыл бұрын
i can hear again for interface because u will give some real time example like method overloading, method overiding and abstract :( but really telling that your teaching is awesome
@usfeb14
@usfeb14 7 жыл бұрын
Nice explanation. Keep it up.
@LukaszSkyWalker
@LukaszSkyWalker 6 жыл бұрын
public static void main Big extends Thx!! ;)
@209pawan
@209pawan 9 жыл бұрын
amazing presentataion....
@universalstarcreations7297
@universalstarcreations7297 3 жыл бұрын
If the playlist is updated correctly it will be more easy for students to understand
@vivekanandhan9027
@vivekanandhan9027 6 жыл бұрын
Very nice explanation. Thanks
@RiteshKumar-ri1xq
@RiteshKumar-ri1xq 6 жыл бұрын
Superb Explaination.
@ankit2290
@ankit2290 5 жыл бұрын
Sir..Thanks for making Java so easy. One question U said interface can't be instantiated because it can not declare anything and hence can't have constructor. Then why can't abstract class be instantiated when it can declare as well
@satish1342
@satish1342 4 жыл бұрын
If your stating a class as abstract ,it means you cannot instantiate it
@abin_4857
@abin_4857 4 жыл бұрын
That's just a reference, ur creating A object with B memory.
@SumitKumar-lj3nd
@SumitKumar-lj3nd 4 жыл бұрын
If I am assigning a memory of new B() , to A obj. Than in the heap memory methods of B class will also be created for reference obj , how can it not access obj.display() , because in heap memory both the methods will be there.
@bayarea2012
@bayarea2012 8 жыл бұрын
Love you Man. You are good.
@kiyadhdhanujva6688
@kiyadhdhanujva6688 3 жыл бұрын
So helpful 👏
@100AFRO
@100AFRO 4 жыл бұрын
watching this in 2021.. Thanks
@aceleitlpokeri2826
@aceleitlpokeri2826 5 жыл бұрын
This video is quite useful.
@aceleitlpokeri2826
@aceleitlpokeri2826 5 жыл бұрын
Thank you Mr.
@siddhantpathak6289
@siddhantpathak6289 7 жыл бұрын
awesome explanation thank you sir
@amolsarate5991
@amolsarate5991 5 жыл бұрын
Lay bhari sirji
@vladanulardzic5859
@vladanulardzic5859 5 жыл бұрын
Well done ! Keep on ...
@suminthapa7277
@suminthapa7277 8 жыл бұрын
Nice lecture.Thank u sir.
@teny398
@teny398 4 жыл бұрын
Awesome tutorial
@aarushigupta1106
@aarushigupta1106 9 жыл бұрын
is the occurrence of ambiguity problem not possible in i interface if yes then what's the difference between multiple inheritance of class & interfaces
@darshankhatri7375
@darshankhatri7375 4 жыл бұрын
Thank you so much Sir Thanks for sharing.
@vishnumurali522
@vishnumurali522 6 жыл бұрын
can we declare two methods in Interface and defining one by one like ABSTARCT CLASS? Is it possible?
@anikettambe8147
@anikettambe8147 7 жыл бұрын
Sir if we cannot access obj.display() then what is the Use of Dynamic Method Dispatch.
@shubhisrivastava3197
@shubhisrivastava3197 8 жыл бұрын
hi sir, i hv a query.. In the previous tutorial i hv read that .."Its not the reference that matters,what matters is the object we create " so , in this we are creating reference of A and object of B. So, it should call show method of class B. why it is calling show method of class A ....Is it a property of interface ?
@ApexSpeedster
@ApexSpeedster 8 жыл бұрын
If we are using reference of parent class and creating object of child class, this is called Upcasting. In upcasting only those methods are executed which are present in parent class and is overridden in child class....and in case of interface or abstract class we are overriding the parent class methods.
@saibalusu3139
@saibalusu3139 5 жыл бұрын
best teaching
@MrAkashsanu
@MrAkashsanu 9 жыл бұрын
is dis the property of interface sir we can make refrence of it nd the which r present in it can only be called not the derive class method
@sasmalpayal
@sasmalpayal 8 жыл бұрын
Sir you said if we have Upcasting in an interface then its restricted to use the child class but its not only for interface, its also for single inheritance public class A { public void show(){ System.out.println("Hi A"); } } class B extends A{ public void display(){ System.out.println("Hi b"); } } class M{ public static void main(String a[]){ A obj=new B(); obj.show(); obj.display();// error } }
@vinodkumarm5480
@vinodkumarm5480 7 жыл бұрын
Hi Sir, I have tried same program for the abstract as well, and the fact u said security in interface same am getting in the abstract class also, can u clear my confusion
@ProgrammerCpp1999
@ProgrammerCpp1999 6 жыл бұрын
Yes I have the same doubt did you find the answer if yes then plz tell me
@adityakaushal3955
@adityakaushal3955 7 жыл бұрын
Fabulous sir!
@s_ec_pro8816
@s_ec_pro8816 2 жыл бұрын
public static void main(String args ) is not there is that possible in java ????
@i_karank
@i_karank 7 жыл бұрын
u said in the beginning that " the class which have atleast 1 abstract method is called as abstract class". this collides with ur previous videos which says that abstract class may or may not have abstract class!!
@bharadwaj25
@bharadwaj25 7 жыл бұрын
Excellent, thank you.
@aarushigupta1106
@aarushigupta1106 9 жыл бұрын
I got the ans is it because functions r declared only & thus definition is only one & thusno ambiguity accurs
@bass9454
@bass9454 8 жыл бұрын
such good tutorijalz
@i_karank
@i_karank 7 жыл бұрын
this ambiguity prob also occurs in c/c++ so why does c/c++ support multiple inheritance?
@rangabharath4253
@rangabharath4253 5 жыл бұрын
Thank you so much 👍
@mohammedviso2269
@mohammedviso2269 8 жыл бұрын
great tutorial
@rakesh4411
@rakesh4411 9 жыл бұрын
really amazing....
@saishankar3556
@saishankar3556 5 жыл бұрын
how we can provide security by using interface. Kindly explain me. Thankyou
@syedshanawaz9149
@syedshanawaz9149 9 жыл бұрын
I DO SUGGEST EVERY ONE TO WATCH THIS VIDEO
@abhijiths148
@abhijiths148 7 жыл бұрын
perfect man...
@bhanu-06-07
@bhanu-06-07 2 жыл бұрын
Watching after 7yrs
@joychakraborty8533
@joychakraborty8533 4 жыл бұрын
So its not only the property of interfaces but other class also its not about any security yes we know java is more secured but in this case its a common property of java
@preethamm.n1161
@preethamm.n1161 5 жыл бұрын
💞💞💞My hero🇮🇳💞💞💞💞
@shaileshbagade8544
@shaileshbagade8544 7 жыл бұрын
methods in interface do not have any access modifiers, you wrote public there
@rohitvishwakarma8550
@rohitvishwakarma8550 3 жыл бұрын
thank you sir ji
@A2DChannel
@A2DChannel 7 жыл бұрын
He did dis vid in 2012.............
@digitalnomadg
@digitalnomadg 7 жыл бұрын
If Interface doesn't support creation of object then how can you write - A obj = new B();
@rupalipatil6288
@rupalipatil6288 7 жыл бұрын
Gautam Bhattacharya Its only create a ref of A not object ...it an object of B
@parasarora2606
@parasarora2606 8 жыл бұрын
why we not used ? private void show() { system.out.println("hi); } reply plz
@sandipdhakal7017
@sandipdhakal7017 7 жыл бұрын
Paras Arora because we are overriding the show() of interface A..while overriding the method declaration must be same,only we can change the method definition.
@akshaykumarsingh3637
@akshaykumarsingh3637 8 жыл бұрын
class A{ int i=5; } interface B{ int i=6; } class C extends A implements B{ public void show() { System.out.println(i); } } class main{ psvm(String...a){ new C().show(); }}
@akshaykumarsingh3637
@akshaykumarsingh3637 8 жыл бұрын
y this arror ????
@Purplehaze778
@Purplehaze778 8 жыл бұрын
It might be too late, but I believe, it's because of ambiguity that he explained in his last lecture. Class c will be confused where should it use "i" from ClassA or interface B. Also, I think defining variable/s is not a good idea in interface.
@AadityaKavthekar
@AadityaKavthekar 5 жыл бұрын
wow, thank you! :)
@logeshwari1795
@logeshwari1795 7 жыл бұрын
thank u so much
@pratyushsingh3967
@pratyushsingh3967 7 жыл бұрын
you know how to teach
@AjayKumar-zh1yt
@AjayKumar-zh1yt 8 жыл бұрын
Hello! Sir. I Like the way of your explanation about the concepts. I observed here you had to channels Right. May I know Which channel is better to follow.
@gurukirans266
@gurukirans266 4 жыл бұрын
6:11 and we can do it and i love it
@ramkanaimondal
@ramkanaimondal 3 жыл бұрын
Sir, you look like Nadal
@dinkusailo
@dinkusailo 5 жыл бұрын
Wow..
@eshwardath8182
@eshwardath8182 3 жыл бұрын
2021
@zyro9922
@zyro9922 6 жыл бұрын
early videos
@thaheerhussainshaik7258
@thaheerhussainshaik7258 Жыл бұрын
2023
@aadityanaik1655
@aadityanaik1655 4 жыл бұрын
If it wasnt your video i would reported it for poor quality
@livespecimen8601
@livespecimen8601 3 жыл бұрын
Great job sir
@TheCocoglam1
@TheCocoglam1 6 жыл бұрын
thankyou so much.
@NirajPRoxx
@NirajPRoxx 5 жыл бұрын
Thank you sir.
@leilasarbazi
@leilasarbazi 2 жыл бұрын
Thank YOU
@kaligouthami5279
@kaligouthami5279 Жыл бұрын
2023
8.21 Interface in Java Tutorial with Example
13:28
Telusko
Рет қаралды 268 М.
#65 What is Interface in Java
8:03
Telusko
Рет қаралды 260 М.
OCCUPIED #shortssprintbrasil
0:37
Natan por Aí
Рет қаралды 131 МЛН
Java's Creators Rejected Multiple Inheritance - Here's Why
13:14
Coding with John
Рет қаралды 71 М.
Java Tutorials || Java OOPS  ||  Interface   Introduction || by Durga sir
15:35
Durga Software Solutions
Рет қаралды 110 М.
Abstract Classes and Methods in Java Explained in 7 Minutes
7:00
Coding with John
Рет қаралды 570 М.
Java interface 🦅
7:51
Bro Code
Рет қаралды 220 М.
#66 Need of Interface in Java
8:32
Telusko
Рет қаралды 162 М.
Generics In Java - Full Simple Tutorial
17:34
Coding with John
Рет қаралды 1,1 МЛН
#50 Multiple Inheritance in Java
6:36
Telusko
Рет қаралды 103 М.
Abstract Class In Java Tutorial #79
8:55
Alex Lee
Рет қаралды 552 М.