Professional Documents
Culture Documents
Type Conversion
Type Conversion
(Implicit)
Byte>short>int>long>float>double
Widening Process
short s=1;
int x=s;
Double>float>long>int>short>byte
Narrowing Process
Int x=100;
Byte b= liter
Java Literals
boolean friday = true;
float dia=1.56;
int x=12345;
float flt=12.8F;