Which one line in the following code will not compile?
1. byte b = 5; 2. char c = '5'; 3. short s = 55; 4. int i = 555; 5. float f = 555.5f; 6. b = s; 7. i = c; 8. if (f > b) 9. f = i;
F.
The code b = s will not compile, because converting a short to a byte is a narrowing conversion, which requires an explicit cast.
The other assignments in the code are widening conversions.