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
When we serialize an object does the serialization mechanism saves its references too?
How is treeset implemented in java?
List the features of java programming language.
What is complexity and its types?
Can we override data members in java?
Why volatile is used in java?
Is ++ operator thread-safe in java?
What is primitive array?
What are some characteristics of interference class?
What lambda means?
What is string in java with example?
How to sort elements in a parallel array in java?
Can a class be private?
What is the use of conditional statement?
What is the intersection and union methods?