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)>)
Image Credit: GeeksForGeeks