AMA University Answers
Login
Register
AMA OED
Courses
ITE
ITE-6104
What is the output of the code...
What is the output of the code snippet below:void main(){test(1.0);test(1);}void test(double x){System.out.print(x); }void test(int x){System.out.print(x);}
1010
None of the choices
11
10
101
Correct
Feedbacks
RainyGamefowl
-
2 years ago
Downvoted: 1.01
BrightGuanaco
-
2 years ago
Downvoted this question
Similar ITE-6104 questions
What is the output of the code snippet below: void main(){test("11");test("1");} ...
What is the return value of this method: int test(){return 1;} ?
Which of the following shows Overloading method?
What do you call a variable that belong to the whole class?
What will be the value of x if we execute this: String s = "25"; int x = Integer.parseInt(s); ?
Which of the following creates an instance of a class?