Question: The main method contains the statement int num = someMethod ( 1 2 , 1 4 ) ; . What is the result after this

The main method contains the statement int num = someMethod (12,14);. What is the result after this statement is executed?
public static double someMethod(int a, int b)
i
return a+b4;
}
Select one:
a. num being assigned the value 6.0
b. num being assigned the value 6
c. num being assigned the value 6.5
d. error: missing return statement
e. error: possible loss of precision
Clear my choice
 The main method contains the statement int num = someMethod (12,14);.

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 Programming Questions!