Which declaration can be inserted at (1) without causing a compilation error?.
interface MyConstants { int r = 42; int s = 69; // (1) INSERT CODE HERE }
Select the two correct answers.
(a) and (c)
Declaration (b) fails, since it contains an illegal forward reference to its own named constant.
The field type is missing in declaration (d).
Declaration (e) tries illegally to use the protected modifier, even though named constants always have public accessibility.
Such constants are implicitly public, static, and final.