2-1-Formal parameters
public void m (int a) {}//a: formal parameter
2-2-Actual parameters
public void N () {int B; }//b: Actual parameters
2-3-static method
Methods that use the static keyword are static methods that can be called before they are instantiated, and static methods are not instantiated
Static methods can only be method-static methods in this class, and static methods cannot be accessed
2-4-Construction method
A method used to initialize a class when the method is constructed, usually called automatically when the object is created, or by using the This keyword.
Construction method has no return value, the name must be the same as the type and cannot be modified with static final
Class person{
Public person () {}//constructor method}
2-5-Main () method
Main method is Java's program entry
The main method is a static method
The main method can only be called by the system and cannot be called by another method or class