Can a variable of type int
that has been declared final
be assigned to a byte data type variable? Why?
public class ByteDataType {
public int x=20;
byte a=x; //This is an error
public final int z=30;
byte c=z; // This is not an Error !! Why???
}