Question: Same example method: public static void showSum ( double num 1 , double num 2 ) Would the following call work? showSum ( 1 0

Same example method:
public static void showSum(double num1, double num2)
Would the following call work?
showSum(10.2);
Group of answer choices
Yes it would work because we are passing a double
No it would not work because this method requires two double arguments to be passed

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!