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
Can you add null to a list java?
Which method returns the length of a string?
What is the new line character?
How is it possible in java programming for two string objects with identical values not to be equal under the == operator?
What do you understand by soft reference?
How do you create a bulleted list?
What is an immutable class? How to create an immutable class?
Explain throw keyword in java?
What is equals method in java?
What are the 4 versions of java?
Explain java coding standards for constants?
What is the use of protected in java?
What is predicate in java?
Can an anonymous class be declared as implementing an interface and extending a class in java programming?
How do you sing an Applet ?