Hi,
class T3{
public static void main(
String a[]){
byte b = 1;
char c = 2;
c=b; //error can not assign byte to character.}}
***********************************************************************
class T3{
public static void main(String a[]){
final byte b = 1;
char c = 2;
c=b; // No Error
}}
My Question is
When Final value of byte is getting assigned to character its not giving error[Second code] but when simple "byte" is getting assigned to "char" its giving compile time Error[Firrst Code].
What is the reason behind this?
Thanks
[ March 04, 2008: Message edited by: sandhi mridul ]