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
Can we create an object of static class in java?
What is an infinite loop?
What is instance synchronization?
Give me some null interfaces in java?
What is slash r?
Which is easier .net or java?
I have multiple constructors defined in a class. Is it possible to call a constructor from another constructor’s body?
Explain the difference between transient and volatile in java?
Why array is used in java?
Can we have any code between try and catch blocks?
What is final int?
What are the two ways in which thread can be created?
What is an accessor?
What is default size of arraylist in java?
What are internal and external variables?