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
Can an interface extend a class?
What is keyset in java?
What is the private method modifier?
What if the main() method is declared as private? What happens when the static modifier is removed from the signature of the main() method?
How do you convert an int to a string in java?
What are the loops in java?
Is stringwriter thread safe?
Which package is imported by default?
What is a parameter in matrices?
Explain the importance of finally block in java?
What is the difference between logical data independence and physical data independence?
Why does my function print none?
What is an interface in java? Explain
Does substring start with 0?
What are different ways of object creation in java ?