Correct Answer : D
When we use abstract
modifier for class
, it means:
* Class is partially implemented and there will be sub-class of this class which will give complete implementation.
* You cannot instantiate abstract class.
* You can have zero or more abstract methods in abstract class (abstract method is an method whose implementation is not known)
When you use final
modifier for class
, it means:
* Class is fully implemented and there should not be any sub-class of this class.
* Modifier final
is totally opposite of abstract
modifier. Hence for a class
, final
and abstract
modifier cannot be used together.