IX Dude - Instant eXpert Guides - Geek with pocket protector Instant eXpert Guides

Java - Reserved Word Classification

Java (computer language) reserved words can be classified in several groupings
relating to the origin or purpose of the word. Java grammar and syntax provide
the language structure and reveal the word classes (or word groups), such as
primitive data types, statements, modifiers, etc.

Java Reserved Word Classification

1. Primitive Data Types
2. Statements
3. Modifiers
3.1 Access modifiers
3.2 Class modifiers
3.3 Field modifiers
3.4 Initializer modifier
3.5 Interface modifiers
3.6 Member modifiers
3.7 Method modifiers
3.8 Variable modifier
4. Class creation, extension, and manipulation
5. Class interface
6. Class packaging and use
7. Constants
8. Operator keywords
9. New keywords
10. Unused keywords
11. See also

1. Primitive Data Types

boolean, byte, char, double, float, int, long, short

2. Statements

The following list of words are Java key-words ( reserved words ) that are Java statements:

break, case, catch, continue, default, do, else, finally, for, if, return, synchronized, switch, throw, try, while

Some reserved words begin a statement, while other words provide a way to complete the statement. Examples of these statement structures: if/else, switch/case, or try/catch/finally. Other Java statements are a single Java word such as break, which can be used in combination with do, do/while, for, switch/case, and while.

3. Modifiers

Modifiers provide additional information to describe or classify something. The following list of words are Java key-words ( reserved words ) that are Java modifiers:

abstract, final, native, private, protected, public, strictfp, static, synchronized, transient, volatile

3.1 Access modifiers

Also known as member modifiers.

private, protected, public

3.2 Class modifiers

abstract, final, public, strictfp, static

3.3 Field modifiers

final, static, transient, volatile

3.4 Initializer modifier

static

3.5 Interface modifiers

abstract, public

3.6 Member modifiers

Also known as access modifiers.

private, protected, public

3.7 Method modifiers

abstract, final, native, strictfp, static, synchronized, void

3.8 Variable modifier

final

4. Class creation, extension, and manipulation

class, extends, new, super, this

5. Class interface

implements

6. Class packaging and use

import, package

7. Constants

These keywords are the Java pre-defined constants

true, false, null

8. Operator keywords

These Java keywords are actually considered 'operators'.

new, instanceof

9. New keywords

assert - added in Java 1.4
enum - added in Java 5.0

10. Unused keywords

These Java keywords were reserved (and protected) by the creators of Java, but never implemented.

const, goto

11. See also

  1. Java Reserved Words - Instant Expert Guide
  2. Computer Language Quick Reference - Instant Expert Guide




Created with ixDoc - 28-Sep-2005/4:28:13 :: Jump to Index page - Instant Expert Guides

Copyright © 2005, IX Publishing, Inc. - All rights reserved.