Title: Key Concept - Method Declaration
Course: CPS 189: Java Certification - Review, Practice & Prepare (Development) > Section: (OLDstyle) 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

For more information about Methods:

- Click this link to view Oracles's documentation: Defining Methods.
- Level 1 Study Materials: Unit 5