Multiple choice technology programming languages

All variables in an Interface are by default __________.

  1. public

  2. final

  3. static

  4. all the above

  5. there should not be any variable in an interface

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

All variables declared in a Java interface are implicitly public, static, and final. They become compile-time constants that must be initialized and cannot be modified. This is a fundamental Java language rule for interfaces.