Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

1. What is this? (pg 205) public static int max (int num1, int num2) Method head

ID: 3735076 • Letter: 1

Question

1.

What is this? (pg 205)
public static int max (int num1, int num2)

Method header

2.

What is this? (pg 205)
int z = max (x, y)

Method call

3.

What is this? (pg 205)
public static int max (int num1, int num2) {
int result;
if (num1 > num2) {
result = num1;
} else {
result = num2;
}

}

Method modifier

4.

What is the return type of this method call? (assuming it compiles)(pg 206)
String s = getString();

Returns Char

5.

What is the return type of this method call? (assuming it compiles)(pg 209)
showString();

Method declaration

Explanation / Answer

Question 1
Answer:
Method header

Question 2
Answer:
No answer text provided.

Method calling

Question 3
Answer:
Method definition

Question 4
Answer:
Returns String


Question 5
Answer:
Returns Void