Java Interview Short 8 - why abstract class is used - No Abstract method use-case | #javainterview

preview_player
Показать описание
Hey this is our, Java Interview Short 8 and today we will be discussing why abstract class is used when there is No Abstract method present inside a given class.

Why Java allow to write an Abstract class without an Abstract method?

Abstract class is one of the top most feature in Java oop and pretty much similar to an java interface. but do you know, we can declare an abstract class without even writing an abstract method inside it.

The whole purpose is, Letting the client class know that, there is a possibility of adding abstract method in future which might break the client code, so they should be design their classes like that.

#javainterviewquestions #javaoop #abstractclass

For more free/paid courses visit

#JavaInterview #SpringBootInterviewQuestions #MicroservicesInterviewQuestions

For More free/paid courses visit

LINKS AND FREE LEARNING RESOURCES
========
Watch my new mock interview series for java developers

Watch my new Hello spring boot series

Watch Spring boot Hot topics

Java Interview / Question and Answer series

Explain spring Bean Lifecycle

spring core

spring mvc

spring mvc intermediate

Spring JDBC

spring live project

SPRING SECURITY COURSE[NEW]

For more courses visit

Any time you are getting stuck with issues, Feel free to ask for support.

you can ping me on my Facebook page

Make sure to join my private Facebook page (Ask me here)
“SeleniumExpress - Support"

you can ask for support in my website forum

Subscribe to my youtube channel

Follow me on Insta
Рекомендации по теме
Комментарии
Автор

Awesome information. Please continue to make such informative YT shorts!

subhadeepchakraborty
Автор

I have no idea why your channel didn't get popularity.
I'm lucky that I found your channel.
Ready to pay, Please do something and make your live cources available as well. They are inaccessible currently.

mss
Автор

We can also use interfaces to achieve the abstraction and multiple inheritance in java.

shubhamgopale
Автор

Great. Thanks😊

This raises a question like what is the diff between abstract method and interface default method.

Let me serach on that topic

jayakumarsivasankar
Автор

Can you make a YT short on:
After Java 8, when to use Abstract class vs Interface?

freestyler
Автор

states the o- rule from solid principle open for extension closed for midification

vigneshreddy
Автор

Then we need to overide the abstract method from subclass, according to our requirements ryt

shaiktappalameennawaz
Автор

Really happy to see you on reels bro 🎉😊

srikanthveepuru
Автор

what if a class having 2 constructors having one as without parameters and second one as with parameters
now if we call constructor in main method, which will prefer whether it’s 1st or 2nd constructor?

fixohtj
Автор

If we need abstract function in future then at that time we can change the class to abstract

shubhamkasera
Автор

hi mr abhilash i wish you are fine
i have aproblem i installing jboss it can’t generate hbm file for me. can you do a video or share with us your configuration i mean sts and jboss and hibernate versions please 🙏

everydayinformation
Автор

Is abstract class can have non abstract methods?

movietrailer
Автор

Didn't get this issue, you can't have an abstract method in a non abstract class, so even if you have to have an abstract method later on and make the class abstract the child class will not have any issues

sanketh
Автор

I didn't even started watching this video and spotted the mistake 😆

HR-pzts
Автор

Wrong., only abstract class can have abstract behavior..

anonymous-cm