Answered You can hire a professional tutor to get the answer.
question 2 In the following method, what is the method name?
question 2
In the following method, what is the method name?
public int add (int a, int b)
{
return a + b;
}
a)public
b)void
c)add
d)a and b
question 3
In the following method, what is the void keyword referring to?
public int add (int a, int b)
{
return a + b;
}
a) the return type
b) a numeric value
c) a string
d) the access modifier
question 4
Given the following method, which of the following is an appropriate call for the method?
public int add (int a, int b)
{
return a + b;
}
a) myClass.add(1.2, 5);
b) myClass.add();
c) myClass.add(999, 999);
d) myClass.add(a, b);