Vidyalelo
Java Programming · Q39

Interfaces and Abstract Classes

Programming · Java Programming · question 39

Q39

In Java, declaring a class abstract is useful

A.
To prevent developers from further extending the class.
B.
When it doesn't make sense to have objects of that class.
Answer
C.
When default implementations of some methods are not desirable.
D.
To force developers to extend the class not to use its capabilities.
E.
When it makes sense to have objects of that class.

Answer: Option B

Solution

Answer: Option B
No explanation is given for this question Let's Discuss on Board