Multiple choice technology programming languages

Which of the following variables is incorrectly declared?

public abstract interface Bouncable {
    int a = 0;
    public int b = 1;
    public static int c = 2;
    public static transient int d = 3;
    public final int e = 3;
    public static final int f = 3;
}

  1. c

  2. d

  3. e

  4. f

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

All variables declared inside a Java interface are implicitly public, static, and final. The transient modifier is illegal for interface fields and causes a compilation error because interface fields are static constants, and transient applies only to instance variables during serialization.