1. It is recommended to put the class in the package, do not use the nameless package
2. Recommended package names are made up of lowercase words, not uppercase
3. It is recommended that the name of the package be "inverted by the domain name." The name of the module to ensure uniqueness of the package name
Note: The difference between a class variable and an instance variable, a class method, and an instance method
Adding static to the front is a class variable or class method.
Instance methods can call other methods in the class
But class methods can only call other class static methods and cannot invoke instance methods
Class methods only call class variables.
When a class is loaded into memory, instance methods, instance variables are not allocated memory space, and are not created until the object is created.
The face class method allocates the appropriate memory space when the class is loaded into memory.
Java Learning 16th Lesson, Java package, class and other related basic knowledge