Impressions: Questions and answers may arise when applying for a Java written test

Source: Internet
Author: User

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

<
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.