the below code result "39 44" as output. I read somewhere that casting used modulo here. I know basic how to calculate modulo like 10%3 = 1 but I still didn't get how it calculated here.
class conversion {
public static void main(String args[])
{
double a = 295.04;
int b = 300;
byte c = (byte) a;
byte d = (byte) b;
System.out.println(c + " " + d);
}
}