الرجوع
تسجيل الدخول
هذه نسخة مؤرشفة قديمة من الموقع انتقل إلى كاتوديمي ←

What will be the output of the following Java code?

public class MemoryTest {
    public static void main(String[] args) {
        Object obj = new Object();
        Object anotherObj = obj;
        System.out.println(obj == anotherObj);
    }
}