Java Annotations & Identifiers

Source: Internet
Author: User

Comments:

Single-line Comment://

Multiline Comment:/* */

Document Comment:/** */

Where document comments can export dox documents, common Javadox tags are as follows:

@author: Specify the author of the Java program

@version: Specify the version of the source file

@deprecated: Deprecated Code

@param: Parameter description information for a method

@return: The return value description information for the method

@see: "See" for specifying poor reference content

@throws: Throws an exception, with @exception agree

Identifier:

Semicolon (;): Each Java statement must use a semicolon as the end

Curly braces ({}): defines a block of code that is logically a whole

square brackets ([]): Immediately following the array variable name, used to access the array element, in parentheses for the array index you want to access

Parentheses (()): 1. When defining a method, parentheses declare formal parameters, and parentheses pass in the arguments when the method is called

2. To enclose a part of an expression as a whole, the precedence operation

3. Operators that enforce type conversions

Space (): spaces can appear anywhere in Java, note that variable names are not separated by spaces

Dot (.): Used between a class/object and its members (member variables, methods, inner classes), indicating that a specified member of a class/instance is called

Article derived from: http://www.cnblogs.com/gr-18219616915/p/5414250.html

Java Annotations & Identifiers

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.