what is the reserved word in Java give example
Answers
Answered by
2
variable names,function names class
ritimaurya:
thanks
Answered by
8
Java
reserved words are
keywords that are
reserved by Java
functions or other uses
that cannot be used as
identifiers (e.g., variable
names, function names,
class names). If a reserved
word was used as a
variable, you would get an
error or unexpected result.
The list of reserved words
in Java is provided below.
List of Java reserved words
abstract
assert
boolean
break
byte
case
catch
char
class
const
default
do
double
else
enum
extends
false
final
finally
float
for
goto
if
implements
import
instanceof
int
interface
long
native
new
null
package
private
protected
public
return
short
static
strictfp
super
switch
synchronized
this
throw
throws
transient
true
try
void
volatile
while
continue
reserved words are
keywords that are
reserved by Java
functions or other uses
that cannot be used as
identifiers (e.g., variable
names, function names,
class names). If a reserved
word was used as a
variable, you would get an
error or unexpected result.
The list of reserved words
in Java is provided below.
List of Java reserved words
abstract
assert
boolean
break
byte
case
catch
char
class
const
default
do
double
else
enum
extends
false
final
finally
float
for
goto
if
implements
import
instanceof
int
interface
long
native
new
null
package
private
protected
public
return
short
static
strictfp
super
switch
synchronized
this
throw
throws
transient
true
try
void
volatile
while
continue
Similar questions