Public: can be accessed by all classes (interfaces, members).
Protected: can only be accessed by classes in this class, in the same package, and if accessed in other packages, it must be a subclass of the class to which the member belongs.
Private: Member variables and methods can only be accessed in the class in which they are defined, and other classes cannot access them. Gets and changes the member variable, generally with get (), set (), public method. Implements the Java object-oriented encapsulation idea.
default modifier : Access rights are similar to protected but are not accessible to subclasses of different packages when decorating class members.
Static: A modified variable, called a class variable or static variable. Static variables exist with the class, and each instance shares this static variable, which is initialized when the class loads.
Final: A variable declared as final must be given an initial value at the time of declaration, and only read in future references cannot be changed. A decorated class cannot be derived from a subclass, and cannot be overridden by methods of the current subclass when the method is decorated.
Abstract: An instance of the abstract class cannot be created. are generally inherited to implement abstract methods. Class has to be defined as abstract, as long as there is an abstract method, but the abstract class is not necessarily protected by the abstract method.
Java access modifier