Keyword overview of Basic Java applications

Source: Internet
Author: User

Learning Java keywords
All keywords are in lowercase.

It is very important to correctly identify the keywords (keyword) and reserved words (reserved word) in Java. Java keywords have special significance for Java compilers. They are used to represent a data type orProgram. Reserved Words are reserved keywords for Java. Although they are not currently used as keywords, they may be used as keywords in later versions.

Java uses a total of 48 reserved keywords. They can be divided into the following types:

(1) Access Control

Private, protected protection, public sharing.

(2) classes, methods, and variable Modifiers

Abstract abstract, class, extended extends,

Final Outcome, implements tool, interface,

Native local, new, static,

Strictfp, synchronized synchronization, transient short,

Volatile is easy to lose.

(3) program control statements

Break, continue, return, do, while, if, else,

For, instanceof, switch, Case, default,

(4) handle errors

Catch catch, finally, throw,

Try throws

(5) package-related

Import input, package.

(6) Basic Types

Boolean, byte, Char, double, double,

Float floating point, Int, long, and short

(7) variable reference

Super Special, this, void has no value

In addition to the 48 keywords, there are three reserved syntax words:

Null null, true, False false.

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.