Java Grammar (4)-comments

Source: Internet
Author: User

------------------------------------------------------------------------------------------------------Description: there    is, kinds of comments.  /* Text */A traditional Comment:all The text from the ASCII characters/* to the ASCII characters */is ignored    (as in C and C + +). //text An end-of-line comment:all the text from the ASCII characters//To the end of the line is ignored (as I N C + +).-------------------------------------------------------------------------------------------------------     Grammar: Comment:traditionalcomment endoflinecomment traditionalcomment:/* commenttail    Endoflinecomment://Charactersinline opt commenttail: * Commenttailstar Notstar Commenttail Commenttailstar:/* Commenttailstar Notstarnotslash commenttail notstar:inputcharacte R but not * LineTerminator notstarnotslash:inputcharacter and not * or/lineterminator CHaractersinline:inputcharacter charactersinline Inputcharacter Description: These productions imply all of        The following properties: comments does not nest.        /* and * * has no special meaning in comments this begin with//.        //have no special meaning in comments this begin with/* or/**.        As a result, the text:/* This comment/*///** ends here: */is a and complete comment. The lexical grammar implies that comments does not occur within character literals (§3.10.4) or string literals (§3.10.5).

Java Grammar (4)-comments

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.