Moderate

Size of int in Java is_________________?

Correct answer: C. 32 bit

  • A. 8 bit
  • B. 16 bit
  • C. 32 bit
  • D. 64 bit

Explanation

Java defines an int as a signed 32-bit primitive regardless of the machine or JVM implementation. Its range is -2^31 to 2^31 - 1.

Last updated

Practise Software Design and Architecture

493 free Software Design and Architecture MCQs from Software Engineering, each with the correct answer and an explanation. Unlimited attempts, no account needed.

Exams that ask Software Engineering questions like this

Software Engineering is on this paper prepared for on TestUstad, and all of them draw the same bank, so this question is worth knowing for it.

Related questions