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
What is purpose of find feature?
Mention some features of java?
Is void a data type in java?
What is synchronization and why is it important in java programming?
Why strings in java are called as immutable?
What happens if main method is not static?
What is a copy constructor in java?
What is meant by 'bit masking' in java?
What do the thread?class methods run() and start() do?
What is the difference between the Reader/Writer class hierarchy and the InputStream/OutputStream class hierarchy?
What does the ‘static’ keyword mean? Is it possible to override private or static method in java?
How do you compare two objects?
What is included in core java?
What is mean by encoding?
what is method reference in java 8?