Sunday, February 20, 2011

Automatic type promotion questions on java and answer with solution



Java objective questions on automatic type promotion and answers


(1)



public class TypeConversion {

public static void main(String[] args) {

{

final int a='\15';

System.out.println(a);

}

int a=25;byte b=0100;

a=a+b;

System.out.println(a);

}

}



What will output when you compile and run the above code

No comments:

Post a Comment