Given:
What is the resulting output?
Java integer literals such as 10 and 100 have type int, so they invoke jump(int), which prints Jump2. The f suffix makes 10.01f a float, so it invokes jump(float), which prints Jump3.
10
100
int
jump(int)
Jump2
f
10.01f
float
jump(float)
Jump3
Community Discussion