Engineering Full Stack Apps with Java and JavaScript
Consider the following interface definition:
public interface ConstTest{ public int A = 1; //1 int B = 1; //2 static int C = 1; //3 final int D = 1; //4 public static int E = 1; //5 public final int F = 1; //6 static final int G = 1; //7 public static final int H = 1; //8 }
Which line(s) will cause a compilation error?
Select 1 option
A. 1
B. 2
C. 3
D. 4
E. 5
F. 6
G. 7
H. 8
I. None of them will cause any error.