public class Test { public static void main(String[] args) { System.out.println( ClassB.var1 ); ClassB.method1(); } }