A summary of local knowledge points about Java

Source: Internet
Author: User

1. In Java, break does not belong to a branch statement;

2. In Java, use the JDK document to view the type itself and the inherited methods and properties.

Using a JDK document as a tool is a good fit,

Using JDK documentation can help you get used to a good habit,

3. In jdk1.7: The data types supported by switch are: Int,char,enum ...;

(enum: enum. Enum (String name,int ordinal))

4. The source file must be the same as the class name, and object is the parent class of all classes ;

5. About strings: strings are objects, and the string class provides many ways to manipulate characters such as joins, extracts, queries, and so on.

6. regardless of the outcome of the condition, the Do-while cycle is performed at least once .

7. In the flowchart, the representative judgment and the branch is: Diamond;

8. In Java, if you need to deal with the value of the equivalent condition to determine a single character, you can use: multiple if selection structure and program control flow statement;

9.JDK is provided to developers, and the JDK includes Java development tools as well as JRE;

each Java program has only one entry, that is, there is only one main () method ;

11. String is not part of the base data type in Java.

12. For loops, perform a loop operation when the loop condition is true. When the loop condition is false, the loop operation is not performed.

13. With respect to constants, define constants with the final decoration, the character type is enclosed in ", and the string is surrounded by" ";

The strongest protection for member access control is: Pritate (private);

The 15.java language is an object-oriented programming language introduced in 1995.

variable names cannot contain system vocabularies, such as: Final,int,double;

17. The three basic control structures in a structured program are: sequence, selection, and circulation.

18. Integer types starting with 0 are 8 binary;

Integer types starting with 0x or 0X represent 16 binary.

Double accounts for 8 bytes and 64 bits, and int accounts for 4 bytes 23 bits. 1 bytes is 8 bits;

the default value for the Boolean type is False.

20.i++, is the first reference after the increment, in I use the value of I to i+1. such as a=1,i++. Get a=2

++i, is to let i+1, in I in the expression I of the new value. such as A=1,++i. to A=i+1=3;

A summary of local knowledge points about Java

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.