Java 有没有 goto?

参考解答

goto是java中的保留字,现在没有在java中使用。

 (选择题)下面不是java关键字的是()

A. sizeof B. throws C. this D. cast

参考解答

A,D;

java中的关键字和保留字:

abstract continue for new switch
assert (c) default goto (a) package synchronized
boolean do if private this
break double implements protected throw
byte else import public throws
case enum (d) instanceof return transient
catch extends int short try
char final interface static void
class finally long strictfp (b) volatile
const (a) float native super while
(a) not used
(b) added in 1.2
(c) added in 1.4
(d) added in 5.0

results matching ""

    No results matching ""