フリー問題

Java SE 25 Developer Professional のフリー問題 2 / 20 問目

問題文

A method returns an Integer that happens to be null, and the caller stores it into an int. What occurs at that moment?

選択肢

  1. The conversion silently attempts the implied numeric extraction, and the absent object therefore raises the pointer error immediately.
  2. The conversion silently attempts the implied address copy, and the absent object therefore raises the pointer error immediately.
  3. The conversion silently attempts the implied numeric extraction, and the absent object therefore raises the arithmetic error immediately.
  4. The conversion silently attempts the implied address copy, and the absent object therefore raises the arithmetic error immediately.

解答・解説を確認するには

正解と解説の確認、回答の記録には無料登録が必要です。登録すると演習モードでフリー問題に回答し、正誤と解説をその場で確認できます。