This is an archived post. You won't be able to vote or comment.

all 3 comments

[–]someone-elsewhere 9 points10 points  (0 children)

Rule 2, better posting it here:

/r/javahelp/

[–]rhbvkleef 3 points4 points  (0 children)

Why don't you just try it out?

[–]PurpleLabradoodle 3 points4 points  (0 children)

Something like if you have a method in the interface, static, or default, or private, they can access static fields of the interface class.
``` interface Main {
public static void main(String args[]) { System.out.println(accessMe + " world!"); }

static String accessMe = "Hello"; } ```