question 2 In the following method, what is the method name? | Cheap Nursing Papers

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);

"Get 15% discount on your first 3 orders with us"
Use the following coupon
FIRST15

Order Now

Hi there! Click one of our representatives below and we will get back to you as soon as possible.

Chat with us on WhatsApp