Creates a new Dollar class variable named dollar. He then assigns the value to this variable by translating into Dollar a variable named object. This is valid Java code, providing a class called Dollar there. But if a variable called object does not belong to the Dollar class, this may throw a ClassCastException.
source share