FYI sometime the compiler may not smart enough. I modify my code.
class MyClass
{
final static int iFS=100;
final static int iFSX;
final int iNum=100;
public static void main(
String []args)
{
final int i = 100;
byte b = i;
//My code starts here
MyClass mc= new MyClass();
b=mc.iNum // Type mismatch: cannot convert from int to byte
b=iFSX; //Type mismatch: cannot convert from int to byte
b=iFS //it's OK
//My code ends here
System.out.println(b);
}
}