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; }
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;
}
"transient", "private" and "protected" modifiers are not accepted when marking data members in an interface.
For methods in an interface, only "public" and "abstract" are allowed
Oracle Certified Professional Java Programmer
Access: Public Instant Grading
Jobilize.com uses cookies to ensure that you get the best experience. By continuing to use Jobilize.com web-site, you agree to the Terms of Use.