Multiple choice general knowledge

variables in interfaces can be defined with private and protected modifiers

  1. True

  2. False

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

Interface variables in Java are implicitly public, static, and final (constants). They cannot use private or protected access modifiers - these modifiers are not allowed for interface fields.