About Question com.enthuware.ets.scjp.v6.2.314 :
Moderator: admin
About Question com.enthuware.ets.scjp.v6.2.314 :
Does String class have hashCode() as a method?
-
- Site Admin
- Posts: 10384
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: About Question com.enthuware.ets.scjp.v6.2.314 :
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 :
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.
I realize you should have a good understanding of each, but memorizing the methods seems useless.
Who is online
Users browsing this forum: Bing [Bot] and 12 guests