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 the point of polymorphism java?
Why do we override tostring method in java?
When a thread is executing a synchronized method , then is it possible for the same thread to access other synchronized methods of an object ?
Write a java program to print fibonacci series?
Enlist few advantages of inheritance?
what do you mean by stream pipelining in java 8? Explain
Why hashcode is used in java?
What are the Static and Dynamic Variables? Differentiate them.
What is tcp and udp?
What is string builder in java?
What is :: operator in java?
What is the loop in java?
What is the byte range?
What is public static void main?
Why are generics used?