public class Promotion{
public static void main(String args[]){
byte b=10;
char c='a';
int i=90;
long l=555L;
float f=3.5f;
double d=1.234;
float f1=f*b;//float*byte->float
int i1=c+i;//char+int->int
long l1=l+i1;//long+int->ling
double d1=f1/i1-d;
//float/int->floatfloat-double->double
System.out.println("f1="+f1);
System.out.println("i1="+i1);
System.out.println("l1="+l1);
System.out.println("d1="+d1);
int x=10;
byte y=(byte)x;
System.out.println(y);
}
}