Question: public static in max(int a, int b) { int result; if(a > b) result = a; else result = b; return result; } public static
public static in max(int a, int b) { int result; if(a > b) result = a; else result = b; return result; } public static double max(int a, double ){ double result; if (a > b) result = a; else result = b; return result * 2; } public static void main(String[] args){ int x = 2, y = 5 int z = max(x,y); int u = max(maxy,2.0); } } what is the return type of max( int a, int b) method what is the return type of max( int a, duoble b) method what will be the value of variable z what will be the value of variable u what is the argument of main method(variable name and type)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
