There are 50 reserved keywords in Java. These keywords are not used to name variables, classes and methods.

Keywords
Description
abstract
It is used for Java Abstraction.
assert
Used for assert statement. This helps in debugging and testing.
boolean
These values are 'true' and 'false' for boolean.
break
Is used to break a loop statement
byte
The variable of numeric type is used to declare. It holds the 8-bits of the integer.
case
Is used for  Switch case statement
catch
Used to handle exceptions from throw.
char
It is used to declare character variables.
class
It is used to declare a class.
const
const It is used for a constant variable.
continue
Used for iterate A Loop.
default
Is used for  Switch case statement
do
It is one type of loop with this also while Loop is used.
double
It is a floating-point data type
else
With if it is used for a statement.
enum
It is 'Keyword' of Enumeration data type
extends
It is used for Inheritance.
final
Used with variable, class and method.
finally
Used for exception handling with try and catch.
float
It is used to declare the Floating-point variable.
for
One type of loop
goto
There is a statement that contains a label.
if
Is a statement. Which shows whether the condition is true or false.
implements
It is used to  implements  interfaces
import
It is used to import packages
instance of
It is used for check object in run-time.
int
It is used to declare an integer variable
interface
It is a pure abstract class
long
It is used to declare long integer variable
native
It is a method specifier.
new
The object of the class is used to create this instance.
package
It is used to declare packages.
private
It is an access specifier
protected
It is used for inheritance
public
It is an access specifier  
return
It is used to return a value.
short
It is used to declare a short integer variable
static
It is used for the Variable method.
switch
There is a statement of more than one condition.
synchronized
The same thread of the class is used for access.
this
It is used to refer to the current object.
throw
It is used for Exception Handling
throws
He also  used for Exception Handling
try
It is used for Exception Handling
void
he not return anything
while
It Is one type of loop

Post a Comment

Please do not any spam link in the comment

Previous Post Next Post