+ 1
What is meant by coercion?
I want explanation with example..
2 Answers
+ 7
Java:
int i = (float) (7/3.0);
converts an integer up to a double for the division and will then cast it to a float before saving it in the variable i.
I want explanation with example..