There can be a abstract class without abstract methods, but
what is the need to declare a class abstract if it doesn't
contain abstract methods?
Answer Posted / zartab
An abstract class when declared, any method declared inside it becomes implicitly abstract and hence any class extending it have to provide deferred implementation.
| Is This Answer Correct ? | 2 Yes | 14 No |
Post New Answer View All Answers
Is it possible to define a method in java class but provide it’s implementation in the code of another language like c?
Why method overriding is used?
What does += mean in java?
What are different types of control structures?
Difference between arraylist and hashset in java?
Can memory leak in java?
What is the primitive type short?
What is generic class?
Can a class have 2 constructors?
What is static import?
Which are the two subclasses under exception class?
What are the differences between stringbuffer and stringbuilder?
Is a boolean variable?
Why pass by reference is not possible in java?
What is gc()?