hi raj,
here is the complete picture
byte->short->int->long->float->double
^
|
char
This means that while traversing in the direction of the arrow no explicit cast is required. But while traversing in the opposite direction explicit cast is required. Also explicit cast is required when there is any conversion between (byte or short) and the char VARIABLES (not literals).
Hope that helps
rahul
[ February 06, 2003: Message edited by: Rahul Gupta ]
[ February 06, 2003: Message edited by: Rahul Gupta ]
[ February 06, 2003: Message edited by: Rahul Gupta ]
[ February 06, 2003: Message edited by: Rahul Gupta ]