About Question enthuware.ocpjp.v17.2.3746 :
Posted: Fri Jun 28, 2024 4:16 am
"Note that if you do not have printSum(int, int) method and if you try to call printSum(1, 2) , printSum(float, float) would be invoked instead of printSum(double, double) because a float is more specific (or closer) to an int than double is."
Isn't being called instead of with ?
Isn't
Code: Select all
printSum(int a, float b)
Code: Select all
printSum(float a, float b)
Code: Select all
printSum(1, 2)