Which of the following is not found in the header of a Java method
A. a return type
B. a parameter list
C. modifiers
D. statements
2 answers
Statements
Statements are not found in the header of a java method.
Example:
public static int methodName(int a, int b)
public static = modifiers
int = return type
methodName = method name
(int a, int b) = parameters
So the correct answer is staments.
Example:
public static int methodName(int a, int b)
public static = modifiers
int = return type
methodName = method name
(int a, int b) = parameters
So the correct answer is staments.