Solved

Which of the Following Would Be a Valid Method Call

Question 60

Multiple Choice

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) ;
}


A) showProduct(5.5, 4.0) ;
B) showProduct(10.0, 4) ;
C) showProduct(10, 4.5) ;
D) showProduct(33.0, 55.0) ;

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions