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 a class extends itself in java?
What is difference between next () and nextline () in java?
What is function overriding and overloading in java?
Does java initialize arrays to zero?
How big is a 32 bit integer?
What is illegal identifier in java?
how are methods defined?
What is the main advantage of passing argument by reference?
What do you understand by the term singleton?
What is size of int in java?
Why do we declare a class static?
What is the reason behind using constructors and destructors?
What are the escape sequences in java?
What is boolean in java?
What is meant by binding in rmi?