java Reserved words and keywords

Source: Internet
Author: User
Tags float double goto switch case try catch java keywords

List of Java keywords (sorted alphabetically by 51 groups):
Abstract, Assert,boolean, break, Byte, case, catch, char, class, const, continue, default, do, double, else, Enum,extends, Final, finally, float, for, if, implements, import, instanceof, Int., interface, long, native, new, package, private, prot ected, public, return, short, static, STRICTFP, super, switch, synchronized, this, throw, throws, transient, try, void, VO Latile, while
Java reserved word list (alphabetical order of 14 groups): Java reserved word refers to an existing Java version that is not yet in use but may be used as a keyword in future versions.
Byvalue, cast, false, future, generic, inner, operator, outer, rest, True, Var, goto, Const,null

The Java language has 51 reserved keywords, where const and goto are reserved but not used. You cannot use reserved keywords to name a class, method, or variable.

I. Reserved keywords

Data type:

Boolean int long short byte float double Char class interface

Process Control:

If else do and for switch case default break continue return try Catch finally

Modifier:

Public protected private final void static STRICTFP abstract transient

Synchronized volatile native

Action:

Package import throw throws extends implements this Super instanceof new

Reserved words:

True false NULL Goto const

java Reserved words and keywords

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.