You are on page 1of 1

# Question

1 Can an abstract modifier be applicable for variables?

2 Can an abstract method be declared as static?

3 Can an abstract method be declared with a private modifier?

4 What is the Concrete method in Java?

5 When to use Abstract class in Java?

6 How to achieve or implement Abstraction in Java?

7 When to use Abstract class in Java?

8 When to use the Abstract method in Java?

9 Can an abstract class have a constructor?

10 Does abstract class allow to define private, final, static, and concrete methods?

11 Is it possible to achieve multiple inheritances through abstract class?

12 What will happen if we do not override all abstract methods in the subclass?

13 What is the difference between Abstraction and Encapsulation?

14 Why abstract class has a constructor even though you cannot create an object?

15 Why should we create a reference to the superclass (abstract class reference)?

16 What is the advantage of the Abstract class in Java?

17 Can we define private and protected modifiers for data members (fields) in interfaces?

18 Which modifiers are allowed for methods in an Interface?

19 What will happen if we define a concrete method in an interface?

20 Can we create non-static variables in an interface

21 What will happen if we do not initialize variables in an interface.

You might also like