Rules for abstract methods and abstract classes - Java Quiz Question


Which is the following statement(s) is/are correct?

X: A class can be marked as abstract with out containing any abstract method.
Y: If a class has even one abstract method, then the class has to be an abstract class.


A
X only
B
Y only
C
Both are correct
D
Both are incorrect