Java Reference
In-Depth Information
Appendix 1
Language elements
Table A.1.1
Keywords.
abstract
else
interface
switch
assert
enum
long
synchronized
boolean
extends
native
this
break
false
new
throw
byte
final
null
throws
case
finally
package
transient
catch
float
private
true
char
for
protected
try
class
goto
public
void
const
if
return
volatile
continue
implements
short
while
default
import
static
do
instanceof
strictfp
double
int
super
Notes on keywords:
the goto keyword is reserved but not used (in modern language design,
such jumping between lines of code is considered very bad programming
practice)
const is also reserved but not used
assert is a new keyword added with Java 1.4
enum is a new keyword added with Java 5.0
Java is case sensitive so in principle you could use these words as identifiers
if you change any character to upper case. But that's not recommended!
683
Search WWH ::




Custom Search