public class aman {
void m(double a , int b, int c) {
System.out.println(\"second\");
}
void m(float a , int b, double c) {
System.out.pr
The JLS will not consider 2 conversions and 1 conversion to be a difference. It will only distinguish between having-to-convert and not-having-to-convert.
Since both methods have-to-convert, they are equally possible.
Related to this subject, there is my answer on a similar question (but not entirely the same).