11. Given below are the two method definitions:
i. public static double Check(double x, double y)
ii. public static double Check(int x, double y)
Which of the two methods is invoked for the following?
i.double z = Check (6,5);
ii. double z = Check (5.5, 7.4);
Answers
Answered by
2
Answer:
I think double z=Check(5.5, 7.4) will be invoked for the above mentioned, since the data type over there is double and the second one also has int value, over there only 5 will be considered instead of 5.5
so (ii) should be the answer
Similar questions
Environmental Sciences,
4 months ago
Science,
4 months ago
Math,
8 months ago
Biology,
8 months ago
Social Sciences,
11 months ago