70 likes | 300 Views
Type Conversion. Implicit : understood ,never expressed Explicit : stated , no scope of confusion UpCasting : Lower to Upper DownCasting : Upper to Lower byte Short int - - - - - - - - - >float long - - - - - - - - -> double. Char.
E N D
Type Conversion Implicit : understood ,never expressed Explicit : stated , no scope of confusion UpCasting : Lower to Upper DownCasting: Upper to Lower byte Short int - - - - - - - - - >float long - - - - - - - - -> double Char
Above picture is Automatic conversion chart • or represents without precision loss. • - - - - - - > With Precision Loss • Syntax of Explicit type conversion: • (target type)Exprssion;
The following given table shows the compatible types for implicit conversion: