Which modifiers does a field declared in a Java interface implicitly have?
Correct answer D. public, static and final
Explanation
Every field in an interface is implicitly public, static and final, so it is a constant that must be initialised where it is declared. An interface cannot hold per-object state. The word abstract applies to methods rather than fields, and declaring an interface field private or protected is a compile-time error.
Answer checked How we write and check questions
Discussion