Java View all facts Glossary Help |
mechanism > casting > casting a primitive type |
casting a primitive type comparison table |
Subject | use | have example | have syntax | done | involve | has definition | is a kind of |
---|---|---|---|---|---|---|---|
casting | (String)i.next() | The process of producing a new value that has a different type than its source | mechanism | ||||
casting a primitive type | to convert a primitive type to an object | //i is an int | (typename)value | explicitly if the destination type is smaller than the source type to avoid loss of precision | a Boolean type | casting |
Next casting: casting an object Up: casting