الرجوع
تسجيل الدخول

What is the output?

public class MyClass {
    public static int staticVar = 99;
    public int instanceVar = 0;

    public static void main(String[] args) {
        MyClass obj1 = new MyClass();
        obj1.instanceVar = 50;
        MyClass obj2 = new MyClass();
        obj2.instanceVar = 100;
        obj2.staticVar = 25;
        System.out.println(obj1.staticVar + " " + obj1.instanceVar);
    }
}