Curioustab
Aptitude
General Knowledge
Verbal Reasoning
Computer Science
Interview
Aptitude
General Knowledge
Verbal Reasoning
Computer Science
Interview
Home
»
Java Programming
»
Objects and Collections
Which class does not override the equals() and hashCode() methods, inheriting them directly from class Object?
java.lang.String
java.lang.Double
java.lang.StringBuffer
java.lang.Character
Show Answer
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 →
Discussion & Comments
No comments yet. Be the first to comment!
Name:
Comment:
Post Comment