Java Interview Question: Difference Between Abstract Class & Interface | #shorts #kiransir #java

preview_player
Показать описание
Make sure to watch this video until the end as it contains valuable information to help you. If you have any questions, feel free to comment and we'll be happy to provide answers.

𝗚𝗲𝘁 𝗶𝗻 𝘁𝗼𝘂𝗰𝗵 𝘄𝗶𝘁𝗵 𝗺𝗲 𝗯𝘆 𝗷𝗼𝗶𝗻𝗶𝗻𝗴 𝘁𝗵𝗲 𝗳𝗿𝗲𝗲 𝗱𝗲𝗺𝗼 𝗰𝗹𝗮𝘀𝘀 𝗹𝗶𝗻𝗸 𝗯𝗲𝗹𝗼𝘄:

#TheKiranAcademy #shorts #javaprogramming
______________________________________________________________________________
______________________________________________________________________________

📱𝗖𝗼𝗻𝘁𝗮𝗰𝘁 𝗨𝘀:-
Deccan, Pune :- +91 902 868 2797
Chinchwad :- +91 885 705 5009
Karve Nagar, Pune :- +91 888 855 8802

⇛Subscribe to this channel, and press the Bell🔔Icon to get another informative video

📢📢𝗖𝗼𝗻𝗻𝗲𝗰𝘁 𝘄𝗶𝘁𝗵 𝗺𝗲

𝙏𝙝𝙖𝙣𝙠 𝙔𝙤𝙪 😇 𝙁𝙤𝙧 𝙒𝙖𝙩𝙘𝙝𝙞𝙣𝙜...

Key Words:
#kiransir #javabykiran #jobs #freshers #placements #salary #javainterviewQuestionsanswers #placementQuestions #besttraining#java #testing
Рекомендации по теме
Комментарии
Автор

The simple diffrence is abstract class can contain both abstract methods and concrete methods while interface only contains abstract methods.

indianlion
Автор

Now we can declared non abstract method into interface from 1.8 later version

ajaypanchal
Автор

To declare Interface will use keyword “Interface ”.
To declare abstract will use keyword “abstract”.

==> Method: Interface contain only abstract methods while abstract class can contain both abstract methods and concrete methods

==> Constructor :-interface will not have constructors while abstract have constructors.

==> object:- we cannot create object for both interface and abstract class

==> Implement:- one Interface cannot implement another interface. While abstract class can implement another abstract class

==> Extends :- one Interface can extends another interface.

_shubhamsharma
Автор

We can achieve 100% abstraction using interface keywords but we cannot achieve 100% abstraction using abstract keywords.

When we put abstract keywords in method as well as class, than it become 100% abstract class

Navalprakash
Автор

Not satisfied 😔, the main point you missed bro 🥱

DevPanda-qg
welcome to shbcf.ru