Title: Key Concept - Method Declaration
Course: CPS 189: Java Certification - Review, Practice & Prepare (Development) > Section: Learning Modules

A method declaration has the following six parts:

1. Optional modifiers like public, private, and others.
2. A required return type — the data type of the returned value, or void if no returned value.
3. A required method name.
4. Required parentheses surrounding an optional parameter list.
5. An optional exception list.
6. A required method body enclosed in curly braces

The method signature is composed of the method name and list of its parameter data types. It does not include the data type, if any, returned by a method.

For additional study, view resources under:

- Level 1 Study Materials: Unit 5