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 / srinidhi a.p
Abstract classes are a type of helper classes. i.e., they
help some other class to complete its job.
So, if there is no methods specified, then the instance or
static variables can serve something for other class which
extends it.
| Is This Answer Correct ? | 1 Yes | 3 No |
Post New Answer View All Answers
Explain restrictions for using anonymous inner classes?
What is a consumer in java?
Justify your answer that you can't define a method inside another method in java, if you can then how?
What is a literal coding?
What are the new features in java 8? Explain
What does regex mean?
What is a pointer and does java support pointers?
Can anonymous class have constructor?
Why do we declare a class static?
What is difference between class and object in java?
What are the differences between forwarding () method and sendredirect() methods?
What is mvc in java?
What is the purpose of methodology?
When a thread is executing a synchronized method , then is it possible for the same thread to access other synchronized methods of an object ?
What is this keyword used for?