Почему мы можем получить доступ к статической переменной через ссылку на объект в Java, как в коде ниже?
public class Static {
private static String x = "Static variable";
public String getX() {
return this.x; // Case #1
}
public static void main(String[] args) {
Static member = new Static();
System.out.println(member.x); // Case #2
}
}