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 Basics of OOP Language in java
What is the difference between overriding and overloading in OOPS.
What is the base class of all classes?
Can singleton class be inherited in java?
What is the benefit of lambda expressions?
How to do a true java ping from windows?
How we can declare a static variable?
Discuss about garbage collector in Java.
What is the syntax and characteristics of a lambda expression?
Why char array is favored over string for the storage of passwords?
What is difference between char array and string?
What’s the difference between the methods sleep() and wait()?
What is local declaration?
how are methods defined?
What is function declaration?