I'm pursuing my bachelor's degree in computer science. I've learnt a lot from these lectures and I'm still learning. Thank you so much and you're a great teacher.
Sir i am in 4th sem of my btech cse. I haven’t learned that much concepts in 2 years as i have learn by watching your videos of c, c++, java in last two months. You are great sir. Thank you sir
pehla pehla fat rahi thi par ab maja aa raha ha java ma, kya mast padhaya ha. literally when i was attending this lecture i felt like some super hero action movie is going on, it was like at any moment story could get change. thank you sir, thank you very much for this lectures. love from gujarat
I have been watching you since last 6 years my dear sir you are a different sort of teacher. Awesome way of making us understand. One day i must meet you. Hope you will not deny
sir i have seen your different languages videos all videos are superb and your explaination is excellent thanku for helping students to strong their concepts and knowledge...:-)
Sir your way of explaining is so good, and explaing it in Hindi makes it totally unique and out of every context available on you tube. But please give some some example also, like some code which we should also run on eclipse and get confident on the content. BTW Thanks a lot for your cooperation and help for society.
loved the video, very detailed explanation with simple code examples and simple language overall very informative and useful video, great for understanding Interface concept from core to become a better programmer or getting prepared for interview questions
Sir, this videos are very helpful for me. I request you for providing some star and number pattern in Java, that will be so much beneficial for me too.
In interface: 1. Method are implicitly public and abstract. 2. Variables are implicitly public static final. w/o providing the keywords while declaring the methods and variables. Interface cannot have constructor as it doesn't have instance member variables. We can create reference variable of interfaces. As Interface can extend multiple parent interface. And class can implement multiple interface. We can achieve multiple inheritance in java using above behavior. Interface can have nested interface which will be public by default.
Thank you Sir, could you please explain if two interfaces having the same function, then the class which implements two of them how will it resolve the conflicts?
No Doubt,your Lectures are perfect for the java Beginners.Sir i have a question that i have an interface "Person" containing "Name" and its getter and setter.Then i have implemented a class named "Student" and want to override the setter but it shows error.Please tell me that how can i override the setter function.
IS TARHA KA ..KOE TEACHER POORE INTERNET PE HAI HI NAHI .. NA UDEMY NA KAHIN OR .. UNDER THE HOOD KYA HO RHA HAI WO SMJHANA EASILY BHOT HI TALENT KI CHEEZ H .. ! Class Teacher { Public void Thanks (){ Sout("Thanks to saurabh shukla sir"); } }
sir jab abstract class hai hi then interface ka kya kam I mean interface k function ko override kr k define krna hi padta hai then what is the need of it can u explain it with daily life example
sir video me explaination bahut understanding hai ,sir or example bataiye na interface ke bare me ,or interface real life me kaha kaha use hota hai like development etc
you can have constructors in an abstract class, the reason you can't have constructors in an interface is not primarily related to static member variables. The fundamental reason is that interfaces serve a different purpose than abstract classes, and they do not represent concrete objects or provide instantiation. Here are the key reasons: Purpose of Interfaces: Interfaces in Java are meant to define a contract, a set of method signatures that classes must implement. They define what methods a class that implements the interface must have, but they don't contain any state or behavior of their own. Because of this, they don't need constructors for initialization. No State or Behavior: Interfaces do not have fields (state) or method implementations (behavior). They are pure abstractions, only specifying method signatures. They don't contain any attributes that need initialization. No Object Instantiation: You cannot create instances of an interface using the new keyword. Interfaces are not intended to represent concrete objects that can be instantiated. The responsibility for object initialization belongs to the classes that implement the interface. Responsibility of Implementing Classes: When a class implements an interface, it is responsible for providing concrete implementations for all the methods declared in the interface. If an implementing class needs any initialization, it should provide its own constructors to handle that. Multiple Inheritance: Java allows a class to implement multiple interfaces. If interfaces had constructors, it could lead to ambiguity and complications when a class implements multiple interfaces, as there would be a question of which constructor(s) to call during instantiation.
Great Sir,, Video are very informative and helpful to understand the Very Basic concept .. Are U planning to Upload the Video Regarding Big Data , Hadoop ?
About the reference variable of interface part is it only a thing for interface and abstract class? Because i remember playing around practicing polymorphism and did this -> classA obj=new classB(); obj was able to call methods from classB
Sir I m very thankful to you for urs online courses. I have a question that I have implemented an interface in my class and I have redefine each of function of interface in my class. Now If a extends my class with a subclass then , Is interface functions need to be redefine in subclass too or not??
Sir, what is the use of upcasting? reference variable of base class, and reference variable of derived class will ultimately call the overidden method of derived class.. Then what is the use of reference variable of base class? Please help sir
Sir ,if student class doesn't need to use some functions of interface person, then what will we do, because you said that we have to define all of the functions of interface?
From Java 9 onwards, interfaces can contain following also
Static methods
Private methods
Private Static methods
I'm pursuing my bachelor's degree in computer science. I've learnt a lot from these lectures and I'm still learning.
Thank you so much and you're a great teacher.
Sir i am in 4th sem of my btech cse. I haven’t learned that much concepts in 2 years as i have learn by watching your videos of c, c++, java in last two months. You are great sir. Thank you sir
yrr tu mera bhai hai, same here 😂😂😂
@@kingfisher8260aur me tum dono ka bhai hu, same here🤩
I have watched this like 5 times and I also used these interfaces and abstract classes in spring , now I have full clarity on these concepts. Thanking
pehla pehla fat rahi thi par ab maja aa raha ha java ma, kya mast padhaya ha.
literally when i was attending this lecture i felt like some super hero action movie is going on, it was like at any moment story could get change.
thank you sir, thank you very much for this lectures.
love from gujarat
I have been watching you since last 6 years my dear sir you are a different sort of teacher. Awesome way of making us understand.
One day i must meet you. Hope you will not deny
sir i have seen your different languages videos all videos are superb and your explaination is excellent thanku for helping students to strong their concepts and knowledge...:-)
Neha Channa masala....
Thanks, sir! May Allah give you more success!
जय श्री राम चौधरी जी 🙏🏻
one of the best video on interface, i learnt interface from many place but your explanation was superb , thanks sir
Amazing teacher this video got length with content ,others have 20min length with 10min content
Jabardast, samzaya sir ji aapne
Dhanyawad
nice one sir, its very helpful for freshers🙂
apke channekl se v sikh rha hu mai
You are the best teacher I have ever met..After long time feeling like studying in the same class where you used to teach us.
this java series still a master piece on youtube for java students. I'm watching this series in july 2024.
yes bro we can also watch which college from you
Brilliant sir.... I was stuck in this topic for a while and U made it clear..... Thanks a lot
Sir dil khus kr diya aapna ... Aap sai aacha koi samja hi ni sakta. .... Thanku so much sir g .
Big fan .. reply plz ...
Best java teacher in the world ❤️
I am watching this in August 2023. still very helpful, clear, crisp, Short.
Really beneficial sir still in 2021 may Allah Almighty reward you with good and guide you.
sir ap k sare videos useful hain ..excellent sir isi tarha videos banate rahen
love from Pakistan ..........
Sir your way of explaining is so good, and explaing it in Hindi makes it totally unique and out of every context available
on you tube. But please give some some example also, like some code which we should also run on eclipse and get confident on the content.
BTW Thanks a lot for your cooperation and help for society.
best playlist of java i have ever seen
Really sr this video is very useful for interface understand to all java student ..... Thank you sr
Sir app jo har ek point ko explain karte ho maza aa jata hai padne main.
loved the video, very detailed explanation with simple code examples and simple language overall very informative and useful video, great for understanding Interface concept from core to become a better programmer or getting prepared for interview questions
way of your teaching is outstanding sir! gbu
Really sir these videos are very useful for us...and I extremely request u sir more of the upload....thanxxx sir...
every vedio are very helpfull for any software developer
+raginee tiwari Thank You
Sir, this videos are very helpful for me. I request you for providing some star and number pattern in Java, that will be so much beneficial for me too.
he has already provided .. see the playslist
Sir Ur way of explaining is fantastic....I like this
sir, your way of explaining is very clear and understandable
Sir aapke videos bhut ache h isko dekh kr basics clear ho jata h. Sir ho plz spring ya hibernate pr v videos bnaiye
This video is very useful for us thanks for it.... Sir plzz upload the videos of C# language
Hi...sir
bohath acche videos banaya sir aapne...,bohath helpful hua sir mujhe..., thank you sir..,
the way of explanation, is osmmmm no words,thank you soooo much sir
Amazing way of teaching sir. Thank you very very much :)
In interface:
1. Method are implicitly public and abstract.
2. Variables are implicitly public static final.
w/o providing the keywords while declaring the methods and variables.
Interface cannot have constructor as it doesn't have instance member variables.
We can create reference variable of interfaces.
As Interface can extend multiple parent interface.
And class can implement multiple interface.
We can achieve multiple inheritance in java using above behavior.
Interface can have nested interface which will be public by default.
Saurabh bhai share aur subscribe bhi utni hi achhese samzate he jaise Java
Brother you speak clean Urdu like Karachi so easy to understand
Sir please explain difference between object and reference variables
u r best i have no words to say any thing about u sr i love u sr...
Hi sir aap ka video bahut hi achha h. aap ne bahut achhe se bataya h. thank sir
Thanks a lot Sir!!! Such a gem video!!
Thanx Sir and Explanation was Superb.
Sir u r God for me..
Samjane ka tarika to gjb h
Sir I also want ppt of your lectures. Your lectures are really awesome
Thank you Sir, could you please explain if two interfaces having the same function, then the class which implements two of them how will it resolve the conflicts?
No two interface can have same method with same signatures
Thanks concept is clear .....👍
Awsm.....superb
Well-done sir love from pakistan
nice and awesome...u r great
No Doubt,your Lectures are perfect for the java Beginners.Sir i have a question that i have an interface "Person" containing "Name" and its getter and setter.Then i have implemented a class named "Student" and want to override the setter but it shows error.Please tell me that how can i override the setter function.
Awesome explanation sir
Great sir
It's too helpful
Your explanation is awesome...sir...Thank you..
IS TARHA KA ..KOE TEACHER POORE INTERNET PE HAI HI NAHI .. NA UDEMY NA KAHIN OR ..
UNDER THE HOOD KYA HO RHA HAI WO SMJHANA EASILY BHOT HI TALENT KI CHEEZ H .. !
Class Teacher {
Public void Thanks (){
Sout("Thanks to saurabh shukla sir");
}
}
very well explained sir ... thank u soo much
22:15
Sir, is it like Early binding in c++??
sir jab abstract class hai hi then interface ka kya kam I mean interface k function ko override kr k define krna hi padta hai then what is the need of it can u explain it with daily life example
OP sir❤
Great job!
sir video me explaination bahut understanding hai ,sir or example bataiye na interface ke bare me ,or interface real life me kaha kaha use hota hai like development etc
great video sir
Great Lecture
you can have constructors in an abstract class, the reason you can't have constructors in an interface is not primarily related to static member variables. The fundamental reason is that interfaces serve a different purpose than abstract classes, and they do not represent concrete objects or provide instantiation.
Here are the key reasons:
Purpose of Interfaces: Interfaces in Java are meant to define a contract, a set of method signatures that classes must implement. They define what methods a class that implements the interface must have, but they don't contain any state or behavior of their own. Because of this, they don't need constructors for initialization.
No State or Behavior: Interfaces do not have fields (state) or method implementations (behavior). They are pure abstractions, only specifying method signatures. They don't contain any attributes that need initialization.
No Object Instantiation: You cannot create instances of an interface using the new keyword. Interfaces are not intended to represent concrete objects that can be instantiated. The responsibility for object initialization belongs to the classes that implement the interface.
Responsibility of Implementing Classes: When a class implements an interface, it is responsible for providing concrete implementations for all the methods declared in the interface. If an implementing class needs any initialization, it should provide its own constructors to handle that.
Multiple Inheritance: Java allows a class to implement multiple interfaces. If interfaces had constructors, it could lead to ambiguity and complications when a class implements multiple interfaces, as there would be a question of which constructor(s) to call during instantiation.
Nice xplanation 👌👌
Thank you sir for this online course 🙏
Wonderful videos..... Thank u sir....
great explanation
Great Sir,, Video are very informative and helpful to understand the Very Basic concept ..
Are U planning to Upload the Video Regarding Big Data , Hadoop ?
Thanks so much for all topics I easily understood it
Bahut achcha samjhae sar ji apne
your teaching is so good sir thank you thank you thank you
About the reference variable of interface part is it only a thing for interface and abstract class? Because i remember playing around practicing polymorphism and did this -> classA obj=new classB();
obj was able to call methods from classB
Looking back it was because method for class b was overriding the method from class a reason why it was happening
Well explained
sir u are excellent
Helpful video ..
Awesome
bahot acha h
Sir, abstract class ki subclass ko abstract class ke fields ko bhi override Karna padta hai kya object banane ke liye
Excellent Sir
Good job
Love you sir dil se
thank u sir..your videos are really helpfull..
Sir, what is the difference between reference variable and obj ?
Dono same type se ban rahe hai?
Sir, hum interface me default function banakar uska use kar sakte hai
Aur default function ki body bhi interface mr likh sakte hai
Excllent sir. thank u
sir please make a video in runtime polimorphism and compile time polimorphism.
watcung it in 2019 .. please sir provide more videos ,.. nore coding please reply.. thank u
watching*
Plss make a video on object tyoe casting
Amazing
sir why we store object id of child class in parent class reference variable ??what is the benefit ?and what is the benefit of Interface?
Sir I m very thankful to you for urs online courses.
I have a question that I have implemented an interface in my class and I have redefine each of function of interface in my class. Now If a extends my class with a subclass then , Is interface functions need to be redefine in subclass too or not??
Or bhai tickorr....
Fir is baar nhi karoge report caary ki video
Sir, what is the use of upcasting?
reference variable of base class, and reference variable of derived class will ultimately call the overidden method of derived class.. Then what is the use of reference variable of base class? Please help sir
Very helpful !
Sir ,if student class doesn't need to use some functions of interface person, then what will we do, because you said that we have to define all of the functions of interface?
interface and extend in java super ,this new funln video plz sir
why we can't assign the value in varieble in interface by the initializer ???