JAVATM- The Beginnings


Section 1 - Keywords

A keyword is one of the words used to define the syntax of the Java programming language. The following are a few examples of Java keywords:

class public static void

Section 2 - Identifiers

An identifier is a valid name. Java defines the following rules for identifiers:

The following are examples of valid Java identifiers:






The following are examples of invalid Java identifiers:

        1hello                (identifier may not begin with a digit)

        hello world        (identifier may not contain whitespace)

        hello;world        (identifier may not contain punctuation)

Java is a case sensitive language: baby, BABY, and BaBy are three different identifiers.

Copyright ©2017 by Ralph Lecessi Incorporated. All rights reserved.

Back to