java--keywords and reserved words

Source: Internet
Author: User
Tags keyword list null null switch case true true try catch volatile

Keywords: 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.

Reserved word: A keyword reserved for java. It is not yet available, but may be used as a keyword in the upgrade version.

Access control:
Private protected protected public


Class, method, and variable modifiers

Abstract declares abstraction class extends, inherits final Ultimate, immutable
Implements implements interface interface native local new, creating
Static STRICTFP strict, precision synchronized thread, synchronization transient short
Volatile volatile

Program Control statements
Break jumps out of the loop continue continue return returns do run while loop if else reverse instanceof Instance switch switch case back switch The result of default defaults



Error handling catch handling exception finally there is no exception to execute throw throw an exception object throws declare an exception may be thrown try catch exception


Package related import introduces package basic type

Boolean boolean byte type char character type double dual precision float float int integer Long long integer short shorter integer null null true True false false

Variable reference
Super Parent class. Super class This class void has no return value


Java

Reserved words
Const GOTO


Friendly,sizeof is not a Java keyword, and the Java keyword is lowercase



Java

Reserved words
Const GOTO


Friendly,sizeof is not a Java keyword, and the Java keyword is lowercase





Java
Keyword List (alphabetical order of 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, Prote CTED, public, return, Short,static, STRICTFP, Super,switch, Synchronized,this, throw, throws, transient,
Try, void, volatile, while


Java

Reserved word list (alphabetical order of 14 groups): Java reserved word means that the existing Java version is not yet in use, but later versions may be used as keywords.


Byvalue, cast, false, future, generic, inner, operator, outer, rest, True, Var, goto, Const,null

java--keywords and reserved words

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.