Welcome Guest | Sign in | Register
Objects and Collections - Discussion Page For Q.2906 | Java Programming Questions and Answers | Java Programming Free Online-Tests | LucentBlackBoard | LucentBlackBoard.com

Home > Java Programming > Objects and Collections > Questions and Answers

Exercise:

Section 1

Q: Which class does not override the equals() and hashCode() methods, inheriting them directly from class Object?
A. java.lang.String B. java.lang.Double
C. java.lang.StringBuffer D. java.lang.Character

Answer and Explanation

Answer:java.lang.StringBuffer

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

Comment on this Question

Name:

Loading...




Partner Sites
LucentBlackBoard.com                  SoftLucent.com                  LucentJobs.com
All rights reserved © 2012-2015 SoftLucent.