The method signature (also called method header) is the first line of your method declaration which contains information like its modifiers, return type, method name, and parameters. You will learn more about modifiers, return types, and parameters later in this chapter.

Here’s the method signature for the main method:

public static void main(String[] args)

This is the general format for a method signature:

<modifier(s)> <return type> methodName(<parameter(s)>)

https://s3.amazonaws.com/thinkific/file_uploads/288722/images/3ab/369/e5f/1594171514901.jpg

Image Credit: GeeksForGeeks

Previous Section

11.3 Method Calls

Next Section

11.5 Access Modifiers

<aside> ⚖️ Copyright © 2021 Code 4 Tomorrow. All rights reserved. The code in this course is licensed under the MIT License.

If you would like to use content from any of our courses, you must obtain our explicit written permission and provide credit. Please contact [email protected] for inquiries.

</aside>