Primitive Type Compatibility Errors
Which of the following code segments will result in a compile-time error?
I.
int x = 10;
int y = 5 / x;
II.
double x = 10;
double y = 5 / x;
III.
double x = 10;
int y = 5 / x;
A
I and III only
B
III only
C
II only
D
None
Question Leaderboard
| Rank | |||||
|---|---|---|---|---|---|
| #1 | parth.taur227 | 1 | 1 | 0m 31s | 69 |
| #2 | bommasam000 | 1 | 2 | 0m 41s | 49 |
| #3 | patrickmeijer009 | 1 | 2 | 0m 44s | 46 |
| #4 | lsj08030922 | 1 | 1 | 3m 49s | -129 |
Items per page:
10
1 – 4 of 4
APFIVE