Multiple choice technology web technology

Which of the following is incorrect

  1. An Interface can have a variable

  2. An Interface can have a public member

  3. An Interface can have a static member

  4. An Interface can have a final member

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

In Java, interfaces CAN have variables, but they must be public, static, and final constants (implicitly all three). The statement 'An Interface can have a variable' is correct if referring to constant fields. Interfaces cannot have instance variables or mutable fields. Options B, C, and D describe what interface members CAN be (public, static, final), so they are not incorrect statements.