Suppose that you have created a program with only the following variables.
int x = 2
int y = 3
Suppose that you also have a method with the following header: public static void mathMethod (int x) Which of the following method calls are legal?
a. mathMethod (x); mathMethod (12)
b. mathMethod (y); g. mathMethod (12.2)
c. mathMethod (x, y); mathMethod (
d. mathMethod (x + y); mathMethod (a)
e. mathMethod (12L); mathMethod (a / w)
+5
Answers (1)
Know the Answer?
Not Sure About the Answer?
Find an answer to your question 👍 “Suppose that you have created a program with only the following variables. int x = 2 int y = 3 Suppose that you also have a method with the ...” in 📗 Computers & Technology if the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Home » Computers & Technology » Suppose that you have created a program with only the following variables. int x = 2 int y = 3 Suppose that you also have a method with the following header: public static void mathMethod (int x) Which of the following method calls are legal? a.