4 Java Notes

Source: Internet
Author: User

1 Javadoc tool defaults to handling only document annotations with public,protected-decorated classes, interfaces, methods, member variables, constructors, and inner classes

2 document comments with a slash followed by two asterisks start/**, followed by a slash at the end of the asterisk */, the middle part is all document comments

3 How to use the Javadoc tool:

Javadoc options Java source file | package

The Javadoc tool does not extract information from the @author and @version two tags by default, and if required, specify-version and-author when using the tool to extract

4 The Java language uses semicolons; As a split of statements

51 Blocks of code refer to a piece of code between {and}

6 spaces in the Java language include Space, tab (tab), carriage return (enter)

A 7 identifier is a symbol used to name a class, variable, or method in a program. The Java language identifier must begin with a letter, number, underscore _, and dollar symbol $

8 numbers do not begin in identifiers

9 identifiers cannot contain spaces, special characters (@,#)

All of Java's keywords are lowercase

11 empty applications (NULL) can only be converted to reference types and cannot be replaced with basic types

121 bytes of 8bit

Integer values in Java are represented in four ways: binary (starting with 0b or 0B), decimal, octal (starting with 0), hexadecimal (starting with 0x or 0X)

14

/**
How does the complement get the original code
1000 0000 0000 0000 0000 0000 0000 0011 This is a complement.


0000 0000 0000 0000 0000 0000 0000 0001
The complement minus 1 gets the inverse code
1000 0000 0000 0000 0000 0000 0000 0010 This is anti-code.

And then put the symbol of the anti-code bit unchanged, the other bits to get back the original code

1111 1111 1111 1111 1111 1111 1111 1101 Get the original code
*/

A variable of type char, the value can be fully see the operation of the subtraction, or the size can be compared

4 Java Notes

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.