Java Keywords

In Java programming language has fifty keywords. Each keyword has specific meaning in java language,You can not used keyword for anything other then it's pre-assigned meaning.

Keyword   
Description
abstract 
an abstract class or method
assert   
when assertions enabled , throws an error if condition not fulfilled
boolean
The Boolean type with values true and false
break
Breaks out of the switch or loop
byte
The 8-bit integer type
case
A case of the swatch statement
Catch
The clause of the try block catching an exception
char
The Unicode character type
class
Define the class type
continue
Continue at the end a loop
default
-The default clause of the switch
-Denotes default implementation of the an interface method.
do
The top of do/while loop
double
The double-precision floating-number type
else
The else clause of an if statement
enum
An enumerated type
extends
Defines the parent class of a class
final
A constant ,or a class or method that cannot be overridden
finally
The part of a try block that is always execute
float
The single-precision floating-point type
for
A loop type
If
A conditional statement
implements
Defines the interface(s) that a class implements
import
Imports a package
instanceof
Tests if an object is an instance of a class
int
The 32-bit integer type
interface
An abstract type with methods that a class can implement
long
The 64-bit long integer type
native
A method implemented by the host system
new
Allocates a new object or array
null
A null reference
package
A package of classes
private
A feature that is accessible only by methods of the class 
protected
A feature that is accessible only by methods of this class,its sub ,and other class in the same package
public
A feature that is accessible by methods of all classes
return
returns from a method
short
the 16-bit integer type
static
A feature that is unique to it's class, not to object of it's class
strictfp
Use strict rules for floating-point computations
super
Invoke a superclass constructor or method
switch
A selection statement
synchronied
A method or code block that is atomic to a thread
this
the implicit argument of the method .or a constructor of this class
throw
throws an exception
throws
The exception that a method can throw
transient
mark data that should not be persistent
try
A block of code that traps exceptions
void
donates a method that returns no value
volatile
Ensures that a field is coherently accessed by multiple threads
while
A loop






No comments: