Analyze the outcome of this Java code:
float result = (float)3 / 2; System.out.println(result);
1.5
1
2
An error occurs