One type is promoted to another implicitly if no matching datatype is found.
For example, byte can be promoted to short , int , long , float , or double .
The short datatype can be promoted to int , long , float , or double .
The char datatype can be promoted to int , long , float , or double , and so on.
|
long
data type available for an int
data type, then it will search for float
data type).
“We live in an age when unnecessary things are our only necessities.” ― Oscar Wilde |