0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

Java解説 20250728

Posted at

配列の宣言で有効では無いもの

int a[] = new int(3)
上記は、[]ではなく()を使用している。

配列に明示的な代入をしない場合

デフォルト値で初期化される為、整数型は0、boolean型はfalseになる。

演算子の優先度

System.out.println(10+2*3) = 16
System.out.println((10+2)*3) = 36
()を付与することで優先度が高くなります。


オラクル認定資格教科書 Javaプログラマ Bronze SE(試験番号1Z0-818)

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?