Reserved Word


There are 53 Reserved Word in Java.

The Reserved are divided into two part:

1.Keyword [50]

2.Reserved Literals [3]

further the Keyword are divided into two category:

1.Used Keyword [48]

2.Unused keyword [2]

Used Keyword

Keyword for Data Type [8]:

byte

short

int

long

float

double

boolean

char

Keyword for flow control [11]:

if

else

switch

case

default

for

while

do-while

break

continue

return

Keyword for modifier [11]:

public

private

protected

static

strictfp

final

abstract

synchronized

volatile

transient

native

Keyword for Exception handling [6]:

try

catch

finally

throw

throws

assert

Class related Keyword [6]:

class

interface

extends

implements

package

import

Object related Keyword [4]:

new

instanceof

super

this

Return type Keyword [1]

void

Group of constant Keyword [1]

enum

Unused Keyword



goto

const

The uses of goto keyword which create a several problem in old language and hence Sun people banned this keyword in java

and in Java we use final keyword instead of const keyword.So, this two keyword are unused in Java.



Reserved Literals



true

false

null

The true and false are the value of boolean data type and the null is a default value of object reference.



NOTE:

1.All 53 Reserved Word contains lower-case alphabet;

2.In Java we have only new keyword and their is no delete keyword because destructor of useless object is a responsibility of Garbage Collector.

3.strictfp,assert and enum are new keyword in Java.









NEXT PAGE



PREVIOUS PAGE