素早く問題を解いてInput⇔Outputを繰り返し!
会員レベル
ログイン
メンバーシップアカウント
会員レベル
ログイン
メンバーシップアカウント
HOME
Javaプログラミング能力認定試験 2級
「Javaプログラミング能力認定試験 2級」の記事一覧
tryブロック内でSystem.exit(0)が呼ばれた場合、finallyブロックは実行されるか。
finallyは例外の有無に関係なく実行。
2026年1月24日
catchブロックの引数変数のスコープ(有効範囲)はどこか。
catchブロックの引数変数のスコープ(有…はそのcatchブロック内のみ。
2026年1月24日
次のコードの出力は? int i = 0; while(i < 3) { System.out.print(i); i++; }
実行結果は012。
2026年1月24日
次のコードの出力は? int x = 5; System.out.println(x > 3 && x < 10);
実行結果はtrue。
2026年1月24日
次のコードの出力は? int x = 5; System.out.println(x > 10 || x < 3);
実行結果はfalse。
2026年1月24日
次のコードの出力は? String s1 = “A”; String s2 = “A”; System.out.println(s1 == s2);
実行結果はtrue。
2026年1月24日
次のコードの出力は? String s1 = new String(“A”); String s2 = new String(“A”); System.out.println(s1 == s2);
実行結果はfalse。
2026年1月24日
次のコードの出力は? int a = 10; int b = a; b = 20; System.out.println(a);
実行結果は10。
2026年1月24日
次のコードの出力は? int[] a = {10, 20, 30}; System.out.println(a.length);
実行結果は3。
2026年1月24日
次のコードの出力は? boolean b = true; System.out.println(!b);
実行結果はfalse。
2026年1月24日
投稿のページ送り
1
…
34
35
36
…
109