Keywords of Java foundation

xiaoxiao2021-03-06  39

On the basis of the Java Keywords: Matrix-stopno

Oh, no matter what else, come to a few questions, and make your cattle ^ _ ^

1, Which of the folload area kywords or reserved Words in java?

A) IF b) THEN C) GOTO D) CASE F) SIZEOF

2, Which of the Following Are Java key word?

a) Double B) Switch c) THEN D) InstanceOf

3, Which of these is is the key word in java?

A) DEFAULT B) NULL C) STRING D? THROWS E) LONG F) TRUE

The answer is coming, ACDE 2, AD 3, ADEF? ^ _ ^

Explain 1, then and sizeof are not the keywords of Java, familiar with C or C , and the masters who are used to ASP should be careful.

2, all keywords are lower-written, so Switch is not a keyword. InstanceOf looks like method name, but is actually a keyword;

3, big-written NULL is not a keyword of the Java language. String is a class name of a package class in the Java language, nor is the keyword.

Go again, the system:

It is very important to correctly identify keywords in Java language (Reserved Word). Java's keywords have special significance to Java's compilers, they are used to represent a data type, or represent the structure of the program. The reserved word is a keyword reserved for Java. Although they don't have a keyword now, they may be a keyword in the later upgrade version.

Keyword list

abstract boolean break byte case catch char class continue default do double else extends false final finally float for if implements import instanceof int interface long native new null package private protected public return short static super switch synchronized this throw throws transient true try void volatile while

Reserved word

Const, Goto

be careful

Identify keywords in Java language, not confused with other languages ​​such as C / C .

Const and GOTO are Java reserved words.

All keywords are lowercase

Friendly, sizeof, Run is not a Java keyword

转载请注明原文地址:https://www.9cbs.com/read-118465.html

New Post(0)