Question: Which of the following method declarations would be appropriate for a method that compares 2 numbers? The method body is shown here: { return num
Which of the following method declarations would be appropriate for a method that compares numbers?
The method body is shown here:
return num num;
public static int compareint num int num
public static double compareint num int num
public static boolean compareint num int num
public static void compareint num int num
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
