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


Please Help Members By Posting Answers For Below Questions

When we serialize an object does the serialization mechanism saves its references too?

501


How is treeset implemented in java?

484


List the features of java programming language.

556


What is complexity and its types?

518


Can we override data members in java?

617






Why volatile is used in java?

524


Is ++ operator thread-safe in java?

624


What is primitive array?

511


What are some characteristics of interference class?

506


What lambda means?

533


What is string in java with example?

478


How to sort elements in a parallel array in java?

499


Can a class be private?

506


What is the use of conditional statement?

556


What is the intersection and union methods?

538