Which class does not override the equals() and hashCode() methods, inheriting…

PYQ RPSC Programmer 2011

Which class does not override the equals() and hashCode() methods, inheriting them directly from class Object?

  1. A.

    java.lang.String

  2. B.

    java.lang.Double

  3. C.

    java.lang.StringBuffer

  4. D.

    java.lang.Character

Attempted by 4 students.

Sign up free to check your answer

Sign up free

Explore the full course: Rpsc Programmer

Loading lesson…