Page 1 of 1

About Question com.enthuware.ets.scjp.v6.2.314 :

Posted: Mon Jul 25, 2011 1:17 pm
by Deepa
Does String class have hashCode() as a method?

Re: About Question com.enthuware.ets.scjp.v6.2.314 :

Posted: Mon Jul 25, 2011 7:44 pm
by admin
Every class has this method because it is present in Object class from which every class directly or indirectly extends.

Re: About Question com.enthuware.ets.scjp.v6.2.314 :

Posted: Sat Oct 15, 2011 10:28 am
by leisenstein
It really seems like Oracle just wants people to memorize EVERY SINGLE method in the String and StringBuffer class. Then, try to trip them up by mixing/matching them in questions.

I realize you should have a good understanding of each, but memorizing the methods seems useless.