Four permission modifiers and six non access modifiers in Java
1、 What are the four access modifiers?
2、 A brief understanding of four access modifiers
1. Public permission modifier
@H_ 403_ 44 @ note: @ h_ 403_ 44@Java The main () method of the program must be set to public, otherwise the Java interpreter will not be able to run this class.
2. Protected permission modifier
@H_ 403_ 44 @ note: the protected permission modifier is a kind of permission modifier that is difficult to understand. It is recommended to learn more about it. The following article is the content of the rookie tutorial: @ h_ 403_ 44@Java Detailed description of protected keyword: https://www.runoob.com/w3cnote/java-protected-keyword-detailed-explanation.html
3. [default] permission modifier
4. Private permission modifier
3、 Recognition and application skills
@H_ 403_ 44 @ note: the picture comes from the Internet. In case of infringement, please contact and delete!
skill:
4、 What are the six non access modifiers?
5、 A brief understanding of six non access modifiers
1、static
2、abstract
3、final
4. Synchronized modifier
@H_ 403_ 44 @ note: the picture comes from the Internet. In case of infringement, please contact and delete!
@H_ 420_ 419@
5. Transient modifier
6. Volatile modifier
@H_ 403_ 44 @ the following is from https://blog.csdn.net/J080624/article/details/78258121
last
Learning still has to be repeated (a "stupid bird" like me should not only fly first, but also return successfully!)
During the summer vacation, I found that I was a little ashamed of the sentence on the home page:
@H_ 403_ 44 @ Gou Youheng, why sleep at night and wake up at night. The most unhelpful thing is to expose the cold for ten days in one day!
I feel that I can't move when I learn, and I also feel tired.
However, if you go on like this, you must dig a hole for yourself. You still have to work hard and continue to learn the journey. Also, if anyone sees my note and moves forward like me, send a word here to encourage each other!