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
The non-static member is instance member. The static member(class wide) could not access instance members because, there are no way to determine which instance owns any specific non-static members.
The instance object could always refers to static members as it belongs to class which global(shared) to its instances.