Solved

Given the Following Method, Which of These Method Calls Is

Question 28

Multiple Choice

Given the following method, which of these method calls is valid?
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