الرجوع
الصوت
المظهر
تسجيل الدخول
هذه نسخة مؤرشفة قديمة من الموقع
انتقل إلى كاتوديمي ←
علامة (يتطلب تسجيل الدخول)
تم الحل (يتطلب تسجيل الدخول)
Question 23/25
To compare two objects in a class by values, we use _____
C. Write an equals method that will make a field by field compare of the two objects.
D. Since objects consist of several fields, you cannot compare them.
B. Write a method to do a byte-by-byte compare of the two objects.
A. Use the
==
operator, e.g., object1 == object2
Previous
Next