The Java foundation: Comment keyword identifier Jshell

Source: Internet
Author: User

There are Jshell tools in Java 10 that allow users to enter relevant Java code directly.

Note: Java is divided into single-line comments//Multiline comments/* */Documentation Comments/** */

Keywords: pre-defined, meaningful identifiers in Java. The Java keyword is important for compilers to represent a number type, or to represent a program structure. The keyword cannot be used as a variable name, method name, class name, package name, and parameter.

The JDK later adds the Assert, enum keyword.

Reserved words: Keywords that are reserved in Java may be used later. (Goto const)

Identifiers: Consists of letters, numbers, underscores (_), Dollar signs ($), cannot start with a number (also supports kanji), and cannot use the Java keyword. Identifiers include class names, variable names, constant names, and functions.

Https://www.cnblogs.com/nancyzhang/p/8147526.html

https://baike.baidu.com/item/java%E5%85%B3%E9%94%AE%E5%AD%97

The Java foundation: Comment keyword identifier Jshell

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.