<< No Fluff Just Stuff Symposium Comes Back To St. Louis | Home | First Impression of the iPod Shuffle >>

Friday Quiz

It's not Friday here yet, but it's close. It may be Friday where you are already. So here is this week's Friday quiz:

Without peeking at any books, online documents, IDE quick helps, or javap, write down all the public methods of java.lang.Object.

Now explain what each method is for.



Re: Friday Quiz

toString():String - String that represents the object
hashCode():int - hash of the objects attributes
equals(Object o):boolean - determines if two objects are alike(different from ==)
clone():Object - creates a copy of the object -> See Dolly :)
getClass():Class - returns the class that the object is a representation of

Add a comment Send a TrackBack