Тёмный
No video :(

When to use Abstract class and When to use Interface in Java 

Siva Reddy
Подписаться 22 тыс.
Просмотров 202 тыс.
50% 1

Опубликовано:

 

26 авг 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 277   
@yogeesh8637
@yogeesh8637 Месяц назад
This is wat I m expecting ..from last 4 year I was not getting it ..everyone is just explaining theory part..you are explaining with practical examples ❤ loved it bro
@StateofQuantumEntanglement
@StateofQuantumEntanglement 7 лет назад
great explanation..being mechanical engineering student, I was able to get the concept just by watching one time..thanks !!
@SivaReddyJavaTechie
@SivaReddyJavaTechie 7 лет назад
Thanks Venkatesh :)
@aneesfatimashaikh9708
@aneesfatimashaikh9708 7 лет назад
watched so many videos on this ..finaly understud ur video..very nice explanation thankiu so much sir
@ankitgiri6874
@ankitgiri6874 2 года назад
Video is nice, but dear sir at some points your tongue is sliping for wrong words. This is the best vdo about interface and abstraction, gone through many.
@protonvashishtha
@protonvashishtha 7 лет назад
Beautifully explained! Most people know what is abstraction and interfaces but don't know where to use which.
@SivaReddyJavaTechie
@SivaReddyJavaTechie 7 лет назад
Thanks Shwetank.
@harshadarahate3625
@harshadarahate3625 2 года назад
Thanks Siva sir for providing to the point explanation for difference between Interface and Abstract Class. It helped me a ton 🙏
@SivaReddyJavaTechie
@SivaReddyJavaTechie Год назад
You are most welcome
@mahtabbeplab2480
@mahtabbeplab2480 Год назад
Thanks sir for adding these Realtime examples which helped me understand the differences in a neat manner.
@SivaReddyJavaTechie
@SivaReddyJavaTechie Год назад
Glad it was helpful!
@SmartProgramming
@SmartProgramming 5 лет назад
nice one sir, keep it up 👍👍👍🙂🙂🙂🙂
@tmzpanda
@tmzpanda 4 года назад
0:29 abstract class 1:34 partial abstraction and code reusability 3:05 bank example 7:43 no instantiation 8:33 interface 12:55 abstraction 14:07 difference: abstract class extensibility vs interface multi-inheritance
@peelygotdrip
@peelygotdrip 3 года назад
very good n detailed explanation. Thank you
@SivaReddyJavaTechie
@SivaReddyJavaTechie 3 года назад
Thank you. Please share our youtube channel to your friends circle as it may be helpful for them. Happy Learning.
@ComedyInfoC
@ComedyInfoC 5 лет назад
Good Explanation , small note: in java 8 interface can have a default implantation , so you don't have to implement in sub classes if you provide the default behavior in the interface
@SivaReddyJavaTechie
@SivaReddyJavaTechie 5 лет назад
You are correct. I uploaded videos for Java 8 features.
@SivaReddyJavaTechie
@SivaReddyJavaTechie 5 лет назад
Please refer our RU-vid channel to your friends circle as it might be helpful for them. Happy Learning.
@kgourav01
@kgourav01 6 лет назад
Good explanation but only one correction. Abstraction class can contain all the non abstract methods as well. It is not required to have abstract class atleast one abstract method for being it an abstract class. The main motive of abstract class is that it can't be instantiated.
@venkatsam2472
@venkatsam2472 3 года назад
Simply superb bro.. please do more videos.. 👌🏻🙏🏻👍
@SivaReddyJavaTechie
@SivaReddyJavaTechie 3 года назад
Thanks Venkat. Please share our RU-vid channel to your friends circle as it may helpful for them. Happy Learning.
@venkatsam2472
@venkatsam2472 3 года назад
@@SivaReddyJavaTechie sure bro
@ssrkgw4601
@ssrkgw4601 7 лет назад
Very Nice Explanation and Effort -- Appreciate in coming forward in developing this video
@jibinjames5128
@jibinjames5128 2 года назад
GREAT ONE , CRISP AND CLEAR
@rajenderdasari5304
@rajenderdasari5304 4 года назад
thanks for your clear cut information about the differences..
@SivaReddyJavaTechie
@SivaReddyJavaTechie 4 года назад
Thanks Rajender. Please refer our RU-vid channel to your friends circle as it might be helpful for them. Happy Learning.
@CapTonSumanth
@CapTonSumanth 4 года назад
I got clear structure , thak you so much sir
@SivaReddyJavaTechie
@SivaReddyJavaTechie 4 года назад
Thanks Sumanth. Please refer our RU-vid channel to your friends circle as it might be helpful for them. Happy Learning.
@hshimladka
@hshimladka 7 лет назад
An abstract class is a class that is declared abstract-it may or may not include abstract methods. Abstract classes cannot be instantiated, but they can be subclassed.
@nimoa.rashid9186
@nimoa.rashid9186 6 лет назад
Hrishikesh S thank you....may god bless you....bytheway I’m Muslim from EuroAsia...please don’t hate me🤪🤪🤪
@nagcvlogs
@nagcvlogs 6 лет назад
Why would he hate ? he might be a Hindu and an Indian that doesn't mean he hates Muslim, We Indians may hate Pakistanis for creating issues in the countries ... Even we have a lot of Muslims in India and we treat them as our brothers and sisters ...HA HA I guess that's a lot of information Don't mind me ....I was Just saying...
@ALDMED3962
@ALDMED3962 5 лет назад
As far as I know an abstract class must include at least one abstract method
@VasuRana
@VasuRana 3 года назад
You messed up a little in the end but I really liked your explaination. Liked. Thank you.
@keaweaquarian2631
@keaweaquarian2631 2 года назад
Thank you, that was a great explanation.
@sandeepverma337
@sandeepverma337 7 лет назад
Nice one. But you haven't told as per the Title of the topic "When to use abstract and when to use interface"
@RajuAhmed111
@RajuAhmed111 6 лет назад
When you don't know the implementation and perform common task to do for all use interface.
@prakashdolas4483
@prakashdolas4483 5 лет назад
@@RajuAhmed111 same we can also achieve using abstract class by defining abstract methods only.except multiple inheritance support what is the other advantage of interface.
@Indian_working_mom
@Indian_working_mom 5 лет назад
@@RajuAhmed111 bro please tell me same that abstraction and interface in hospital management system
@marconarca2706
@marconarca2706 4 года назад
it is code reuseability bro
@agarwalmohit43
@agarwalmohit43 7 лет назад
Hi Siva, Thanks a lot. I was too confused about the abstract and interface, where to use what. This question was repeatedly asked by interviewer, and as result i was not able to answer appropriate logic behind each one. Regards, Mohit
@earthcitizen7156
@earthcitizen7156 5 лет назад
Hi siva sir 1)Plz explain the difference b/w abstract class vs interface of java 8 2)Difference b/w inteface of java 7 or below versions of java and intefaceas of java 8 interface?
@yasothaimani2119
@yasothaimani2119 5 лет назад
Thank you so much I have lot of questions in interface here afterwards I don't have any doubts thank you
@SivaReddyJavaTechie
@SivaReddyJavaTechie 5 лет назад
Thanks Yosothai. Please refer our RU-vid channel to your friends circle as it might be helpful for them. Happy Learning.
@rishabhagarwal3404
@rishabhagarwal3404 6 лет назад
This is one of the most ask question by interviewer, and you cleared all my doubts. Thank you sir.
@SivaReddyJavaTechie
@SivaReddyJavaTechie 6 лет назад
Thanks Rishabh
@sandeshrana7225
@sandeshrana7225 5 лет назад
Best explanation in RU-vid
@SivaReddyJavaTechie
@SivaReddyJavaTechie 5 лет назад
Thanks Sandesh. Please refer our channel to your friends circle as it might be helpful for them. Happy Learning.
@maneaniket4200
@maneaniket4200 5 лет назад
Crystal Clear Explanation
@SivaReddyJavaTechie
@SivaReddyJavaTechie 5 лет назад
Thanks Aniket. Please refer our RU-vid channel to your friends circle as it might be helpful for them. Happy Learning.
@gowthamisasanapuri9980
@gowthamisasanapuri9980 3 года назад
Very clear explanation... Thank you very much sir 😊.....
@jagadishs1086
@jagadishs1086 4 года назад
Awesome explanation...sir you cleared all the doubts in interface and abstract in java.... thanks a lot sir
@SivaReddyJavaTechie
@SivaReddyJavaTechie 4 года назад
Thanks. Please refer our RU-vid channel to your friends circle as it might be helpful for them. Happy learning.
@prateek1586
@prateek1586 7 лет назад
Very Simple and Useful explanation Thank you.
@parkashram6482
@parkashram6482 4 года назад
Thanks for such great content, can you please explain how we can hide implementation with the help of abstract class and interface.
@dhanyamrajan478
@dhanyamrajan478 6 лет назад
Great and simple explanation sir. Thank you. Only after watching this video i could understand both the concepts clearly.
@SivaReddyJavaTechie
@SivaReddyJavaTechie 6 лет назад
Thanks Dhanya. Please do suggest our channel to your friend circle as it might help them as well. Happy Learning.
@sweetthirty2
@sweetthirty2 Год назад
Hi sir Why do we use an interface and not an abstract class? What if I implement the same method in an interface and abstract then? Any difference? recent interview question asked
@tufanatha7798
@tufanatha7798 4 года назад
Very clear explanation, Thank you !
@SivaReddyJavaTechie
@SivaReddyJavaTechie 4 года назад
Thanks Tufan. Please refer our RU-vid channel to your friends circle as it might be helpful for them. Happy Learning.
@tufanatha7798
@tufanatha7798 4 года назад
@@SivaReddyJavaTechie Hi Sir, I have one question, is this possible to control a class to access only required methods of an Interface A, A is having test1 and test2 methods, Class B implements A, now I want B can access only test2. Is it possible? (in java 1.7 or 1.8)
@nimoa.rashid9186
@nimoa.rashid9186 6 лет назад
You are a excellent teacher... Come to EuroAsia, Uzbekistan
@SivaReddyJavaTechie
@SivaReddyJavaTechie 6 лет назад
Thanks for your appreciation Aneyssa. Happy Learning.
@apoorv_sri
@apoorv_sri 6 месяцев назад
can uou please also explain , whats the use case of abstract classes after java 8 new interfaces features
@VijayKumarUppala
@VijayKumarUppala 5 лет назад
There is no need to have atleast one abstract method in an abstract class. But if one of the methods are abstract then the class must be an abstract class. Please confuse the viewers with wrong definitions.
@shamshersingh1429
@shamshersingh1429 7 лет назад
very nice explaination shiva....simply awesome....thanks
@AdityaSingh-qn7rf
@AdityaSingh-qn7rf Год назад
still not clear when interface comes with default method in java 8 then what is the use of abstract class ?
@sneharane2596
@sneharane2596 4 года назад
Thank you sir, you really explained it really well and made my doubts clear!
@SivaReddyJavaTechie
@SivaReddyJavaTechie 4 года назад
Thank you Sneha. Please refer our RU-vid channel to your friends circle as it might be helpful for them. Happy Learning.
@indraverma2811
@indraverma2811 3 года назад
Very Nice!!!
@SivaReddyJavaTechie
@SivaReddyJavaTechie 3 года назад
Thanks Indra. Please share our RU-vid channel to your friends circle as it may be helpful for them. Happy learning.
@IndellableHatesHandles
@IndellableHatesHandles Год назад
I don't know where an abstract class would be useful, but interfaces are very useful.
@harikagoud7652
@harikagoud7652 4 года назад
such a great explanation!! It was damn clear and i am highly impressed. Thanks a ton :-)
@SivaReddyJavaTechie
@SivaReddyJavaTechie 4 года назад
Thanks Harika. Please refer our RU-vid channel to your friends and colleagues as it might be helpful for them. Happy learning.
@avatargirase
@avatargirase 7 лет назад
By looking at the method in your classes the class name and the subclass name should be like Account, SavingAccount,CheckingAccount......
@shubhamshah3541
@shubhamshah3541 6 месяцев назад
abstract class conatin all the methods as concrete also, there is no rule like you need to mention atleast 1 abstract method as you mention @Siva Reddy
@kolluru17
@kolluru17 6 лет назад
Your explanation is very good and very clear.. thanks a lot
@SivaReddyJavaTechie
@SivaReddyJavaTechie 6 лет назад
Thanks Ravi. Please do suggest our channel to your friend circle as it might help them as well. Happy Learning.
@pallavianilkar972
@pallavianilkar972 Год назад
Nice explanation
@rahulchandrabhan
@rahulchandrabhan 5 лет назад
Very easily explained. Good Job
@SivaReddyJavaTechie
@SivaReddyJavaTechie 5 лет назад
Thanks Rahul. Please refer our RU-vid channel to your friends circle as it might be helpful for them. Happy Learning.
@rahulchandrabhan
@rahulchandrabhan 5 лет назад
@@SivaReddyJavaTechie will do brother... 😄
@sumitpaul3080
@sumitpaul3080 4 года назад
Respect and Lots of thanks for this kind of quality explanation with the code.. May God bless you.
@SivaReddyJavaTechie
@SivaReddyJavaTechie 4 года назад
Thanks Submit. Please refer our RU-vid channel to your friends circle as it might be helpful for them. Happy Learning.
@naganagaruru8446
@naganagaruru8446 4 года назад
nice explanation
@SivaReddyJavaTechie
@SivaReddyJavaTechie 4 года назад
Thanks Naga. Please refer our RU-vid channel to your friends circle as it might be helpful for them. Happy Learning.
@srikanthreddy6991
@srikanthreddy6991 5 лет назад
Finally clear explanation thanks
@SivaReddyJavaTechie
@SivaReddyJavaTechie 5 лет назад
Thanks Srikanth Reddy. Please refer our RU-vid channel to your friends circle as it might be helpful for them. Happy Learning.
@srikanthreddy6991
@srikanthreddy6991 5 лет назад
@@SivaReddyJavaTechie definitely
@pcpardon
@pcpardon 5 лет назад
Thank you. Answers for long waited questions I had
@SivaReddyJavaTechie
@SivaReddyJavaTechie 5 лет назад
Thanks Kasun. Please refer our RU-vid channel to your friends circle as it might be helpful for them. Happy Learning.
@subramanianchenniappan4059
@subramanianchenniappan4059 5 лет назад
Thank you. I am an experienced java developer. This would be helpful for interviews
@SivaReddyJavaTechie
@SivaReddyJavaTechie 5 лет назад
Thanks Subramanian. Please refer our RU-vid channel to your friends circle as it might be helpful for them. Happy Learning.
@subramanianchenniappan4059
@subramanianchenniappan4059 5 лет назад
@@SivaReddyJavaTechie sure
@gopireddysoundarya7617
@gopireddysoundarya7617 4 года назад
Clear explanation thankyou..
@SivaReddyJavaTechie
@SivaReddyJavaTechie 4 года назад
Thanks Soundarya. Please refer our RU-vid channel to your friends circle as it might be helpful for them. Happy Learning.
@hashinitamilkolam5959
@hashinitamilkolam5959 7 лет назад
Hi Siva Reddy , Good explanation .... I have one doubt , at last in that AbstractClassDemo.java program had one error i couldn't find that error please explain me . because i'm not that much familiar in java . error : 20th line "Private int amount = 0;"
@sandeepmankena363
@sandeepmankena363 7 лет назад
shasudha sudha where is that line?
@ravurisandeep8377
@ravurisandeep8377 4 года назад
Save the file after writing that statement..
@yanlingyang256
@yanlingyang256 7 лет назад
the most detailed and easy-understanding explanation!!!! Thx a lot :)
@SivaReddyJavaTechie
@SivaReddyJavaTechie 7 лет назад
Thanks Yanling
@madhujitbhattacharjee1087
@madhujitbhattacharjee1087 6 лет назад
Nice and simple explanation. Thanks Mr. Reddy!
@shivamkumar-qs7er
@shivamkumar-qs7er 5 лет назад
Greatest videos ever on abstract !
@SivaReddyJavaTechie
@SivaReddyJavaTechie 5 лет назад
Thanks Shivam. Please refer our RU-vid channel to your friends circle as it might be helpful. Happy Learning.
@user-bq6iw1rd6y
@user-bq6iw1rd6y 6 лет назад
14:12 abstract vs interface rundown
@saurabhdhabe603
@saurabhdhabe603 6 лет назад
Thanks a lot! Great explanation with an example and the simple words. Easy to understand.
@SivaReddyJavaTechie
@SivaReddyJavaTechie 6 лет назад
+Saurabh Dhabe - Thanks Saurabh.
@naveenp8438
@naveenp8438 6 лет назад
Nice Reddy. An abstract class is partially implementation. An abstract class may or may not abstract method.
@SivaReddyJavaTechie
@SivaReddyJavaTechie 6 лет назад
Thanks Naveen.
@AnthonyRamtulla
@AnthonyRamtulla 5 лет назад
This was very clear -- great job.
@alishachaudhary4854
@alishachaudhary4854 5 лет назад
literally one of the best explained video!
@SivaReddyJavaTechie
@SivaReddyJavaTechie 5 лет назад
Thanks Alisha. Please refer our RU-vid channel to your friends circle as it might be helpful for them. Happy Learning
@HameedRiswan
@HameedRiswan 5 лет назад
In abstract class u used public abstract int...is string,float also it acceptable....what is the use of int!
@muradivenki
@muradivenki 4 года назад
Awesome explanation. Thank you so much. it helps me a lot in the interview.
@SivaReddyJavaTechie
@SivaReddyJavaTechie 4 года назад
Thanks Venkatesh. Please refer our RU-vid channel to your friends and colleagues as it might be helpful for them. Happy Learning.
@adityaratra7290
@adityaratra7290 5 лет назад
Thanks sir for brushing up the concepts
@SivaReddyJavaTechie
@SivaReddyJavaTechie 5 лет назад
Thanks Aditya. Please refer our channel to your friends circle as it might be helpful for them. Happy Learning.
@korlamskrishna
@korlamskrishna 7 лет назад
Nice info.. one thing we are missing here... if we create object for child class say for ex hdfc and calling methods we are loosing polymarphsim here
@SivaReddyJavaTechie
@SivaReddyJavaTechie 7 лет назад
Siva - This is called as runtime polymarphism where you have same method signature in both super class and sub class but at runtime sub class method overrides the super class method.
@yadneshkhode3091
@yadneshkhode3091 5 лет назад
Outstanding explanation!!!!! Loved it
@SivaReddyJavaTechie
@SivaReddyJavaTechie 5 лет назад
Thank you Yadnesh. Please refer our channel to your friends circle as it might be helpful for them. Happy Learning.
@yoapps137
@yoapps137 5 лет назад
It would also be nice to give us examples in day to day coding life... eg. like... OnClickListeners are an Interface. What about an example like that with Abstract class.
@shivramshrestha3877
@shivramshrestha3877 7 лет назад
Nice video sir, I really understood about the abstract and interface
@SivaReddyJavaTechie
@SivaReddyJavaTechie 7 лет назад
Thanks ShivRam.
@devireddyfavreddy4785
@devireddyfavreddy4785 5 лет назад
Very clear explanation, thanks bro
@SivaReddyJavaTechie
@SivaReddyJavaTechie 5 лет назад
Thank you DeviReddy. Please refer our channel to your friends circle as it might helpful for them. Happy Learning.
@Tony.Nguyen137
@Tony.Nguyen137 3 года назад
Hi bro my english is not so good. Can you type here in the comment the answer to question 4? When to you use abstract class and Interface?
@charlenemaeforio1545
@charlenemaeforio1545 3 года назад
When should we use Interface feature?
@suryasingh4817
@suryasingh4817 5 лет назад
I thought you will give us insight when to use what? It's certainly not the case that if my all method is abstract, I should be switching to interface. Interface and abstract class have much more difference and power in term of when to use and how. If all methods need implementation, I can create abstract class with all abstract method. Then why Interface is required at all.
@grandhegopichand4374
@grandhegopichand4374 5 лет назад
If you do like this, you have only one e sub class .. If you go for interface you can implement multiple sub class , and java don't support multiple inheritance...so we are going to. Interfaces
@emailsubraja
@emailsubraja 6 лет назад
Is the getadress () method an abstract method since it doesn't have definition.
@saktiranjanbehera7010
@saktiranjanbehera7010 5 лет назад
Thanks for sharing the example.Ty again Sir
@SivaReddyJavaTechie
@SivaReddyJavaTechie 5 лет назад
Thanks Sakti Ranjan Behera. Please refer our RU-vid channel to your friends circle as it might be helpful for them. Happy Learning.
@sharefun5799
@sharefun5799 6 лет назад
I've seen people using both of them together but din't get this why .i.e subclass inherit abstract class and implements an interface as well . If we can create mandatory methods in abstract class already then why using interface for creating mandatory methods for subclasses? Like we created calculateInterest in abstract class so that it should be mandatory for all subclasses then why we used interface to create other methods , They can be created as abstract methods in abstract classes ? So what is the actual purpose of using them together ?
@SivaReddyJavaTechie
@SivaReddyJavaTechie 6 лет назад
Use Interface - When all the subclasses want to implement their own implementation for all the methods defined in Interface. Use Abstract class - When there is common methods that can be extends to as it is. This will help code reusable and if any sub class want its own implementation then , sub class can override those methods
@marizalobo5634
@marizalobo5634 6 лет назад
Very good explanation. Thank you sir
@SivaReddyJavaTechie
@SivaReddyJavaTechie 5 лет назад
Thanks Mariza. Please refer our RU-vid channel to your friends circle as it might be helpful for them. Happy Learning.
@mohaniavlogs
@mohaniavlogs 5 лет назад
Please tell, What is the difference between 100% abstract class and interface?
@start1learn-n171
@start1learn-n171 Год назад
Tq
@rajkumarp7784
@rajkumarp7784 7 лет назад
u explained both concepts with sane example.but i didnt understand when to choose interface and when to choose abstract. can u pls give some real time scenarios
@SivaReddyJavaTechie
@SivaReddyJavaTechie 7 лет назад
Interface provides 100% abstraction in Java. Interface is used to provide as a contract for the implementations. In a system it is possible to have the multiple class having the same method name but implementation might be changed from one sub class to another sub class when you providing the functionality for the methods. Hence using the interface, you provide as a contract for the business. E.g: in the case of JDBC, java provides Statement as interface and it have below methods. 1) public ResultSet executeQuery(String sql) 2) public int executeUpdate(String sql) 3) public boolean execute(String sql) 4) public int[] executeBatch() For Java, it does not matter for which database it has to execute the queries as long as database vendor provides the functionality for the above methods. Also each database(oracle, DB2, mysql) can have their own implementation for executing the queries. Abstract class : Go for abstract class when all sub classes methods having the same functionality of the super class method then it is better you can provides those common methods in the abstract class and which you feel implementation is differ in sub classes declare them as abstract methods so that sub classes can only provide implementation for the abstract methods and other methods can be used as code resuable
@kennethcarvalho3684
@kennethcarvalho3684 3 года назад
If you bring code and implementation logic the actual meaning is lost.. Firstly Abstraction and Interface one needs to look at the actual meaning of the words.
@perumalsamy5346
@perumalsamy5346 6 лет назад
Excellent. Good effort. Thanks lot..
@SivaReddyJavaTechie
@SivaReddyJavaTechie 6 лет назад
Thanks Perumal.
@learntolead6250
@learntolead6250 3 года назад
Hey guys after java 1. 7 . We can define a method by using" default" keyword. In interface
@pubgmoments1584
@pubgmoments1584 4 года назад
Thanks sir ..u r great
@SivaReddyJavaTechie
@SivaReddyJavaTechie 4 года назад
Thanks Gamer Romin. Please refer our RU-vid channel to your friends circle as it might be helpful for them. Happy Learning.
@ravurisandeep8377
@ravurisandeep8377 4 года назад
can I change the body of concrete method of abstract clss while overriding it in child clss..answer me pls?
@SivaReddyJavaTechie
@SivaReddyJavaTechie 4 года назад
Yes, you can.
@prashikawachar9358
@prashikawachar9358 5 лет назад
thank you sir I understood all concepts.
@SivaReddyJavaTechie
@SivaReddyJavaTechie 5 лет назад
Thanks Prashik. Please refer our RU-vid channel to your friends circle as it might be helpful for them. Happy Learning.
@ronjonbanerjee1760
@ronjonbanerjee1760 5 лет назад
very nice ..thanks
@SivaReddyJavaTechie
@SivaReddyJavaTechie 5 лет назад
Thanks Ronjon. Please refer our channel to your friends as it might helpful for them. Happy Learning.
@MrShashidharhegde
@MrShashidharhegde 5 лет назад
Great video
@SivaReddyJavaTechie
@SivaReddyJavaTechie 5 лет назад
Thanks Shashidhar. Please refer our channel to your friend circle as it might be helpful for them. Happy Learning.
@mdalimiyan
@mdalimiyan 5 лет назад
Good one Sir. Very useful. I can it is Amazing.
@SivaReddyJavaTechie
@SivaReddyJavaTechie 5 лет назад
Thanks Srkfan. Please refer our RU-vid channel to your friends circle as it might be helpful for them. Happy Learning.
@JayTailor45
@JayTailor45 6 лет назад
Thank you so much... It clear my all doubts about abstract class
@SivaReddyJavaTechie
@SivaReddyJavaTechie 6 лет назад
Thanks Jay.
@YADA70073
@YADA70073 5 лет назад
Great Video and great explanation. But I have a question, Can abstract class inherits from other class?
@SivaReddyJavaTechie
@SivaReddyJavaTechie 5 лет назад
Yes, and you cannot instantiate it either, of course. If you extend a class with an abstract class and not define or provide the implementation for the base class abstract methods then the child class extending it would automatically become abstract.
@SivaReddyJavaTechie
@SivaReddyJavaTechie 5 лет назад
Please refer our channel to your friends circle as it might be helpful for them. Happy Learning.
@ahmadali6624
@ahmadali6624 3 года назад
thanks sir for the details
@SivaReddyJavaTechie
@SivaReddyJavaTechie 3 года назад
Thanks Ahmad. Please share our RU-vid Channel to your friends and colleagues as it may be helpful for them. Happy Learning.
@jameslemieux8973
@jameslemieux8973 5 лет назад
very helpful thank you!
@SivaReddyJavaTechie
@SivaReddyJavaTechie 5 лет назад
Thanks James.
@TeluguInshots12345
@TeluguInshots12345 7 лет назад
tanq sir,nice explanation
@vinaysaivarma4753
@vinaysaivarma4753 7 лет назад
you said no need to implement concrete method in while inheriting abstract class then y do u override getadrress method ....then overided method is executed in the output ???aaa chepandi
@SivaReddyJavaTechie
@SivaReddyJavaTechie 7 лет назад
Here is the scenario : If you don't want super class implementation getaddress method in sub class, you can override and get what ever the functionality you want in the subclass method getaddress method. this is based on the requirement, as long as you are happy with the concrete method implementation in super class can be used as it is then no need to override else you have to override it. Hope it is clear now.
@sumanghimire4210
@sumanghimire4210 7 лет назад
You said "Abstract class is a class which contains atleast 1 abstract method"...HttpServlet is an abstract class , but it doesnot contain any abstract methods....Apart from this point,NICE EXPLAINATION :) Keep helping
@SivaReddyJavaTechie
@SivaReddyJavaTechie 7 лет назад
Suman - Abstract class is a class which contains at-least one abstract method or if we have any requirement where only sub class need to create object for the super class then you can declare class as abstract so that nowhere possible to create object for abstract class expect using the sub class which extends that abstract class. Thanks for liking the video.
@mirzatahir10
@mirzatahir10 7 лет назад
Then Siva why didnt you mentioned that in the video, that means you are sharing half knowledge and some one might get rejected for answering this way in the interview. Please be careful about such things in the future.
@pritammanerao6557
@pritammanerao6557 7 лет назад
Yeah, it think what you are trying to say is that an abstract class may or may not have an abstract method, we don't need to have an abstract method in the abstract class, and it sounds weird as there's no point in that, however, if we mark any method as abstract then we must mark the class as abstract too. @SivaReddy, Nice explanation! The video is really helpful.
@balajishinde3138
@balajishinde3138 7 лет назад
Suman Ghimire Abstract class may contain or may not contain abstract method abstract class Test { It will wotk; } Class Test1 { abstract void check();//it will generate error }
@zerocost7533
@zerocost7533 6 лет назад
Abstract class contain 0 or more abstract method
@ashishkhamkar3339
@ashishkhamkar3339 6 лет назад
Nice explanation with example !!!
@SivaReddyJavaTechie
@SivaReddyJavaTechie 6 лет назад
Thanks Ashish.
@harshupreti1526
@harshupreti1526 5 лет назад
you are god sir !!
@SivaReddyJavaTechie
@SivaReddyJavaTechie 5 лет назад
Thanks for the note of appreciation, please refer our RU-vid channel to your friends circle as it might be helpful. Happy Learning.
@krushnasahu28
@krushnasahu28 6 лет назад
Thanks for this video easy to understood can u upload all oops concept
@SivaReddyJavaTechie
@SivaReddyJavaTechie 6 лет назад
Thanks Krushna Sahu. Please go through videos uploaded here. @ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-gvXLpzAmmf8.html
Далее
Java Interview Q&A on Multi-Threading
34:16
Просмотров 82 тыс.
Difference between Interface and Absract Class
30:52
Просмотров 180 тыс.
I Built a WATERPARK In My House!
26:28
Просмотров 13 млн
How HashMap Works Internally?
20:58
Просмотров 72 тыс.
8.21 Interface in Java Tutorial with Example
13:28
Просмотров 267 тыс.
Interfaces vs Abstract Classes
14:43
Просмотров 14 тыс.
Java Interview Q&A on Exception Handling
16:25
Просмотров 20 тыс.
Java Interview Questions and Answers on HashMap
16:47