posted 16 years ago
1) it is giving error as you are assigning byte to char. Although char has a larger size than byte, but it cannot store negative values while byte can. So if byte has a negative value, then assigning it to char will result in a loss of the original value.
2) it is giving compilation error because when you multiply any data type below integer, the result is always an int.
eg