Is it compulsory to have atleast one abstract method in
abstract class?
Answer Posted / saurabh m. chande
It is absolutely not necessary to have at-least 1 method as an abstract method in a class which is defined as an abstract.
But it is equally necessary to declare the class as an abstract class if at-least 1 method within that class is declared as abstract method.
Abstract class contains either the method declaration only or complete method implementation.
| Is This Answer Correct ? | 8 Yes | 1 No |
Post New Answer View All Answers
What is import java util arraylist?
Which collection is best for sorting in java?
Which class represents the socket that both the client and server use to communicate with each other?
What is primitive data type in java?
EDS (Electronic Data Systems India Pvt Ltd) at Chennai on 16-12-2006.
What is api in java?
What is charat java?
Is arraylist dynamic in java?
Why scanner is used in java?
What is codebase?
How to retrieve data from database in java using arraylist?
What is difference between final and finally in java?
What is the difference between pass by reference and pass by pointer?
What is boolean false?
Can we declare the static variables and methods in an abstract class?