Question: public static int findMax ( int val 1 , int val 2 ) { int max; if ( val 1 > val 2 ) {
public static int findMaxint val int val
int max;
ifval val
max val;
else
max val;
return max;
public static void mainString args
int max;
int max;
int max;
max findMax;
max findMax;
max findMax;
Group of answer choices
Using findMax makes main run faster
Using findMax decreases redundant code
Using findMax reduces the number of variables
Using findMax does not improve the code
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
