Hello Nitin,
Nice Question:
it is true that Math class doesn't have something like
double max(double d1, int i1) but it has max function of type
double max(double d1, double d2).
then also expression double max(11.90d,119) is valid as
119 will be impicitly converted to 119.0d by widening rule
of conversion. which in turn will invoke method of max
of type double max(double,double) which will give the output 119
which will of type double. even any this will work
double max(11.90d, 119.0f)
double max(11.90f, 119.0f)
double max(11.90f, 119.0d)
double max(11.90,119)
as float can be converted to double implicitly by the compiler.