Can i have abstract class with no abstract methods?
Answer Posted / manish kushwaha
HI All,
In Java there is very lovely concept related to Abstract
Class, keep this concept always in your mind i.e.
1) A class can be abstract "without any abstract method".
2) But if a single method is abstract you need to declare
your class as abstract this is mandatory but if class is
abstract then its not mandatory to have abstract methods
as mentioned above.
| Is This Answer Correct ? | 6 Yes | 2 No |
Post New Answer View All Answers
Which sort is best in java?
When will we use them?
Explain importance of finally block in java?
What are multiple inheritances?
Is java still relevant?
Why is a singleton bad?
What does serializing data mean?
What is the exact difference in between unicast and multicast object? Where we will use?
What is meant by attribute?
What is constructor and virtual function? Can we call a virtual function in a constructor?
What is arrays fill in java?
What is serial version uid and its importance in java?
What are the actions that can occur when a thread enters blocked state?
Explain about doubly linked list
Which is bigger float or double java?