some time ago because to participate in a written test, during the preparation of the online found two articles on the written topic, one of the << feeling: The application of Java written test may appear >> problems, and a forgotten name, read deeply inspired.
In the process of finding these answers, I recorded the relevant answers and formed the following things. Need to explain that the following answer must have a lot of incomplete or even wrong place, need you to correct and perfect it, do not throw my eggs ah.
I hope this article will be ready to go to the examination room to some of the colleagues to help, but also hope that more people to join the collection of papers and improve the answers to these work, for everyone better access to work to do a little contribution.
I would like to thank the authors of the previous two papers for their collection and collation of written questions.
If you have any comments and suggestions please contact me through qq:6045306,mail:huijunzi@21cn.com.
Java Basics:
1, scope public,private,protected, and do not write when the difference
Answer:The difference is as follows:
Scope Current class same package descendant class other package
Public√√√√
Protected√√√x
Friendly√√&n