Java Keyword List

Keywords are reserved words in Java programming language. You cannot use these words for any other purpose such as variable names. The Java keywords are instructions to the compiler which interpret the meaning of these keywords and execute the command.

Here is the list of commonly used keywords in Java language.

KeywordDescription
abstractTo declare a class abstract for abstract method.
booleanBoolean data type with values – true or false.
breakBreaks a case or a loop in java program.
byteData type that stores 8-bit signed integer or byte value.
casePart of switch-case block
catchPart of try block that catch exceptions
charCharacter data type
classTemplate for objects in Java
constNot allowed to use, replaced by final keyword
continueIn a loop skip an interation and continue
defaultTo declare default values and methods
doPart of do-while loop
doubleDouble data type
elsePart of if-else block
extendsTo Declare a sub-class
finalFinal variables cannot be reassigned
finallyThe finally block used in exception handling
floatFloating point data type
forFor loop
gotoDoes not use goto statement which is to jump to a specific location in program
ifif block
implementsTo implement an interface
importImport packages
instanceofTo test if an object is instance of a specific class, subclass or interface
intInteger data type
interfaceTo declare interfaces
longlong data types
native 
newTo create new objects
packagePackage contains classes
privatePrivate scope of a class
protectedProtected Scope of a class
publicPublic scope of a class
returnReturns a value from function
shortshort data type
static 
strictfp 
super 
switch 
synchronized 
this 
throw 
throws 
tranient 
try 
void 
volatile 
while 

Please support us by disabling your adblocker or whitelist this site from your adblocker. Thanks!

turn of adblocker imag