This is probably a dumb question but,

why does

not give an exception, but the following code does:Code:`int numerator = read.nextInt();//input = 20`

int denominator = read.nextInt();//input = 4

int fraction = numerator/denominator;

System.out.printf("Fraction: %d",fraction);

Code:`int numerator = read.nextInt();//input = 20`

int denominator = read.nextInt();//input = 4

double fraction = (double) numerator/denominator;

System.out.printf("Fraction: %d",fraction);