Practice Exam
Java SE 17 模擬試験 60問
各カテゴリから出題される60問の演習です。すべて解いたあとに採点すると、正誤と解説を確認できます。
Question 01
次のコードを実行した結果として正しいものを選んでください。
public class Main {
static int value = 1;
static int next() { return value++; }
public static void main(String[] args) {
int a = next() + next() * next();
System.out.println(a + ":" + value);
}
}