nerdexam
GIAC

GSSP-JAVA · Question #67

Which of the following will be the result if an integer overflow occurs in an operation?

The correct answer is D. The high-order bits will be dropped, and only the low-order bits will be stored. See the full explanation below for the reasoning.

Question

Which of the following will be the result if an integer overflow occurs in an operation?

Options

  • AThe StackOverflow error will be raised.
  • BThe result of the operation will not be changed, but a security warning will be thrown.
  • CThe data type of the variable will be changed.
  • DThe high-order bits will be dropped, and only the low-order bits will be stored.

How the community answered

(31 responses)
  • A
    3% (1)
  • B
    6% (2)
  • C
    16% (5)
  • D
    74% (23)

Community Discussion

No community discussion yet for this question.

Full GSSP-JAVA Practice