public class App {
static float height;
public float jump(long x) {
System.out.println("Jump 1");
return height + x;
}
public float jump(int x) {
System.out.println("Jump 2");
return height + x;
}
public float jump(float x) {
System.out.println("Jump 3");
return height + x;
}
public static void main(String[] args) {
App obj = new App();
obj.jump(10);
obj.jump(100);
obj.jump(10.01f);
}
}
upvoted 3 times
...
Log in to ExamTopics
Sign in:
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
DriftKing
5 months, 1 week agojackymak
6 months, 2 weeks ago