7 , the following is not a Java keyword with "C".
A. Super B. This C. NULL D. True
The correct answer is CD, today made a simple Java test problem results let me messy, with so long Java, always think true is also Java keyword, because in any editing tool inside True,false,null will be color, It turned out today that Java is not a keyword, but a literals literal. True,false,null is not a key word. This is also the former Sun company rules, no reason, since to play Java this game will need to abide by the rules of others!
The following is copied from the Http://docs.oracle.com/javase/tutorial/java/nutsandbolts/_keywords.html Web page, you can refer to!
Java Language Keywords
Here are a list of keywords in the Java programming language. You cannot use any of the following as identifiers in your programs. The keywords and is const
goto
reserved, even though they is not currently used. true
,, false
and null
might seem lik e keywords, but they is actually literals; You cannot use them as identifiers in your programs.
abstract |
continue |
for |
new |
switch |
assert *** |
default |
goto * |
package |
synchronized |
boolean |
do |
if |
private |
this |
break |
double |
implements |
protected |
throw |
byte |
else |
import |
public |
throws |
case |
enum **** |
instanceof |
return |
transient |
catch |
extends |
int |
short |
try |
char |
final |
interface |
static |
void |
class |
finally |
long |
strictfp ** |
volatile |
const * |
float |
native |
super |
while |
* |
|
Not used |
** |
|
Added in 1.2 |
*** |
|
Added in 1.4 |
**** |
|
Added in 5.0 |
Keywords in Java