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 classpath?
Why singleton class is used in java?
What is parsing a string?
Describe what a thread-local variable is in java?
Is constructor inherited?
What is pojo class in java?
What is r * in math?
When will you define a method as static in Java?
What is the list interface?
What is final keyword in java? Give an example.
What language is pass by reference?
If you do not want your class to be inherited by any other class. What would you do?
Why do we use string?
Is main is a keyword?
EDS (Electronic Data Systems India Pvt Ltd) at Chennai on 16-12-2006.