Java Basics--->02. Single-line comments, multiline comments, document annotations, and API documentation. __java

Source: Internet
Author: User
Tags class definition documentation
Meaning of annotations:

Content that has no effect on the nature of the program, is mainly used to help readers, developers. Single-line Comment://The following is the comment. 02. Single-line comments, multiline comments, documentation comments, and API documentation. __java ">

2. Multi-line Comment:
02. Single-line comments, multiline comments, documentation comments, and API documentation. __java ">
3. Documentation Comments:
02. Single-line comments, multiline comments, documentation comments, and API documentation. __java ">

Tip: Generating API document annotations is valid only before the class definition, before the method, before the field, and before the inner class.
Javadoc-d the name of the folder you want to save. java file
For example: Javadoc-p apidocs Hello.java
02. Single-line comments, multiline comments, documentation comments, and API documentation. __java ">
The generated API documentation is as follows:
02. Single-line comments, multiline comments, documentation comments, and API documentation. __java ">

Supplementary knowledge:
There are two paths in--> programming: absolute paths, relative paths.
----> Absolute path: Is fixed, cannot change. For example: E:\abc\e
----> Relative path: Is the path relative to a letter, but the path below the letter is indeterminate.

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.