Moderate

In Java byte, short, int and long all of these are ____________?

Correct answer: A. signed

  • A. signed
  • B. unsigned
  • C. Both of the above
  • D. None of these

Explanation

Java's byte, short, int, and long primitive integer types all use signed two's-complement representation. Java does not provide unsigned versions of these four types as primitive types.

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