Java - Keywords
Keywords are used to do some internal functionality or used to specify some functions in the Java Class.
Below I mentioned some of the example keywords,
break break a loop or
switch statement.
continue Skip the loop.
catch Catch the exceptions from try block.
final restrict the user to change.
this refer current class object
super refer parent class object
abstract used to create abstract class
boolean used to declare a boolean variable
class used to create a java class
default used to create a default block in switch statement
do used to create a control statement in loop
double used to declare double variable
if test the condition
else alternative test condition block
extends used to extend the class from another classfinal used to restrict the user
finally used to indicate block of code in try-catch structure
for used to create a loop
Comments
Post a Comment