Why does primitive conversion involving "char" always require explicit cast?
When I do a conversion from byte->char and vice versa it always requires cast.
If I had done this with byte->int and vice versa
then only conversion "int to byte" would have reqired explicit cast (as narrowing primitive conversion):
Conversion char to byte and vice versa
C:\Java\EigeneJavaProgramme>javac Question02d.java
Question02d.java:6: possible loss of precision
found : char
required: byte
byte i = j; //line 2
corrected :
C:\Java\EigeneJavaProgramme>
java Question02d