Interfaces and Abstract Classes - Java Quiz Question


Which of the following is correct?

X: All methods in an interface are by default public. We can not change the access specifier to private or protected.
Y: Abstract methods have to be either protected or public. They can not be private.


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