Abstract Class
What is abstraction ?
How to achieve abstraction in java?
What is abstract classes and why it is used ?
abstract class Sample {
public int a =10 ; // can be static , private , final
public abstract void show();
public void display() {
Sysout(“hii”);
}
}What are abstract methods ?
Why to use abstract class over interface ?.💥💥
If interface & abstract class have same methods and those methods contain no implementation, which one would you prefer?
Why abstract does not provide 100% abstraction .
Can we create instance of abstract class?
Difference between abstract class and interface .💥💥
What modifiers are applicable for abstract class ?
What modifiers are applicable for methods in abstract class ?
What modifiers are applicable for variables in abstract class ?
What keywords are not applicable for abstract keywords ?
Can we declare abstract method in non-abstract class?
Can we declare abstract method as static?
Can we declare abstract method as final?
Can we declare abstract method as private?
Can we declare local inner class as abstract?
Can abstract class implements interface in java?
Can we use “abstract” keyword with constructor, Instance Initialization Block and Static Initialization Block?
Abstract classes can be nested. true or false?
Can abstract class have constructor in java?
We can’t instantiate an abstract class. Then why constructors are allowed in abstract class?💥💥
Can abstract method declaration include throws clause?
What will happen if we do not override all the abstract methods in sub-class?
Can we define abstract class without abstract method?
Can we create object for abstract class?
Can we declare abstract methods as synchronized?
Can abstract class implements interface in Java? does they require to implement all methods?
Can abstract class have static methods in Java?
Can abstract class contains main method in Java ?
What is the difference between final and abstract ?
What is the difference between interface, abstract class and concrete class? Or When we should go for interface, abstract class and concrete class? 💥💥
Last updated