Which part of a method header tells what type of value the method gives back?
Explanation
A method header carries four pieces of information, and each answers a different question: who may call it, what it gives back, what it is called, and what it needs. The return type answers the second of those.
- B is not correct: the name identifies the method so it can be called; it says nothing about the type of the result.
- C is not correct: the access modifier states where the method may be called from.
- D is not correct: the parameter list describes the values the method receives, which is the opposite direction of travel.