Question: Which of the following would be a valid method call for the following method? public static void showProduct (int num1, double num2) { int product;
Which of the following would be a valid method call for the following method?
public static void showProduct (int num1, double num2)
{
int product;
product = num1 * (int)num2;
System.out.println("The product is " + product);
}
| showProduct(5.5, 10.0); | ||
| showProduct(10.0, 10); | ||
| showProduct(10, 10.5); | ||
| showProduct(33.0, 55.0) |
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
