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
How do you compare two strings lexicographically?
Explain the use of javap tool.
What are the different types of garbage collectors in java?
What is the memory leak in java?
What is printwriter in java?
What does microservices mean?
Why do we use bufferedreader?
What are the advantages of user defined functions?
Is there any limitation of using inheritance?
What is the flag in java?
what is recursion in java
What is the size of arraylist in java?
Write code to implement bubble sort in java?
explain what is transient variable in java?
What do you mean by an interface in java?