The key word for Java's underlying syntax

Source: Internet
Author: User

Summary: As a programming language, Java, like other programming languages, has the basic elements of character sets, identifiers and keywords, variables, constants, statements, and other programming languages. As a programming language that was released only 1995 years ago, Java draws on many of the language features of C and C + +.

2.1 Keywords:

Each programming language has some reserved words that define the language, which has a special meaning for the compiler and cannot be used as an identifier-this is the keyword of the programming language. Java's keywords have special meanings for Java compilers, they are used to represent a data type, or to represent the structure of a program, and the keyword cannot be used as a variable name, method name, class name, package name, or parameter.

Access control
Private protected public

Class, method, and variable modifiers
Abstract class extends final implements interface native new
Static strictfp synchronized transient volatile

Program
Break continue return does while if-else for instanceof switch
Case default

Exception handling
Try cathc throw throws

Package related
Import Package

Basic type
Boolean byte char double float int long short null true false

Variable reference
Super this void

Reserved words
Goto CONST

The key word for Java's underlying syntax

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.