Java   View all facts   Glossary   Help
mechanism > casting > casting an object
Next castingcasting a primitive type    Upcasting

casting an object comparison table
Subject use have syntax done has definition is a kind of perform
casting   The process of producing a new value that has a different type than its sourcemechanism 
casting an objectto convert an object to a primitive type - use a wrapper class instead(classname)objectexplicitly if the destination type is a superclass of the source type castingif the source and destination types of the object are related by inheritance - one class must be a subclass of the other

Next castingcasting a primitive type    Upcasting