予約語(Java)
読み:よやくご
英語:reserved word
別名:
意味:
予約語とはその言語であらかじめ予約されており変数や関数名などの単語のこと。
Javaでは50のクラス名やメンバ、変数などプログラマが定義できる
識別子には命名規則に沿っていても使えない単語となります。
Javaの予約語
abstract |
assert |
boolean |
break |
byte |
case |
catch |
char |
class |
const |
continue |
default |
do |
double |
else |
enum |
extends |
final |
finally |
float |
for |
goto |
if |
implements |
import |
instanceof |
int |
interface |
long |
native |
new |
package |
private |
protected |
public |
return |
short |
static |
strictfp |
super |
switch |
synchrnized |
this |
throw |
throws |
transient |
try |
void |
volatile |
while |
プラス true, false,
nullといった特別な意味をもつ物も変数などの名前には使えない。
2008年04月08日
最終更新:2008年04月08日 03:42