Hi,
I have a doubt in the answer for the below.I read this question from one mock exam.
Which of the following statements about interfaces is correct?
A Due to Java's principle of single inheritance, a class declaration can only name one interface.
B All methods in an interface have default accessibility unless declared otherwise.
C All methods in an interface have public accessibility.
D An interface may not contain any variables.
Correct option "C"
A - No, a class declaration may include multiple interfaces.
B - No, all methods in an interface are implicitly public.
C * Yes, all methods in an interface are implicitly public, no matter how the interface itself is declared.
D - No, interfaces may define static final variables
They provided check box ,to select multiple.
My options are C,D
Please tell me Wht is my mistake
Thanks a lot