Solved

Which of the Following Would Be a Valid Method Call

Question 1

Multiple Choice

Which of the following would be a valid method call for the following method?
Public static void showProduct(double num1, int num2)
{
Double product;
Product = num1 * num2;
System.out.println("The product is " +
Product) ;
}


A) showProduct("5", "40") ;
B) showProduct(10.0, 4.6) ;
C) showProduct(10, 4.5) ;
D) showProduct(3.3, 55) ;

Correct Answer:

verifed

Verified

Related Questions