Why can we access a static variable via an object reference in Java, like the code below?
public class Static { private static String x = \"Static variab
static variables are otherwise called as class variables, because they are available to each object of that class.
As member is an object of the class Static, so you can access all static as wll as non static variables of Static class through member object.