Home » Java Programming » Objects and Collections

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

Correct Answer: java.lang.StringBuffer

Explanation:

java.lang.StringBuffer is the only class in the list that uses the default methods provided by class Object.

Next Question→

Discussion & Comments

No comments yet. Be the first to comment!
Join Discussion