Here are the reserved words for Java ( keywords ). You may not redefine any of these reserved words. These words ALWAYS appear in lowercase. You should not give methods or variables the same name as any of these keywords. |
|
abstract |
boolean |
break |
byte |
case |
catch |
char |
class |
const |
continue |
default |
do |
double |
else |
extends |
final |
finally |
float |
for |
future |
generic |
goto |
if |
implements |
import |
inner |
instanceof |
int |
interface |
long |
native |
new |
null |
operator |
outer |
package |
private |
protected |
public |
rest |
return |
short |
static |
super |
switch |
synchronized |
this |
throw |
throws |
transient |
try |
var |
void |
volatile |
while |
|
|