Suppose that you have created a program with only the following variables. int a = 5; int

Question:

Suppose that you have created a program with only the following variables.

int a = 5;

int b = 6;

Suppose that you also have a method with the following header:

public static void mathMethod(int a)

Which of the following method calls are legal?

a. MathMethod(a);

b. MathMethod(b);

c. MathMethod(a + b);

d. MathMethod(a, b);

e. MathMethod(2361);

f. MathMethod(12.78);

g. MathMethod(29987L);

h. MathMethod();

i. MathMethod(x);

j. MathMethod(a / b);

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question
Question Posted: