Computer Science, asked by batraananya, 8 months ago

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 ayushsrivas55
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