Multiple choice technology programming languages

Is the statement true"interface contains variables that must be static and final; abstract class may contain non-final and final variables."

  1. True

  2. False

  3. Neither true nor false

  4. No idea

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

In Java, all variables declared in an interface are implicitly public, static, and final - they are constants by design. Abstract classes, however, can contain both final constants and non-final instance variables, giving them more flexibility. The statement correctly captures this distinction.