Held: Monday, 8 September 2014
We continue our exploration of object-oriented programming by examining Java's approach to objects, the building blocks of object-oriented programming.
ClassCastExceptionif Java can't convert them.
instanceofoperation lets you determine whether an object can be cast.
toString()- convert to a string
equals()- determine if this object equals another object
hashCode()- convert to a relatively unique integer
clone()- make a copy
compareTo()- compare to another object of the same type