In Java byte, short, int and long all of these are
In Java byte, short, int and long all of these are Correct Answer signed
In Java, byte, short, int, and long are all signed integer data types.Here's the breakdown:
Option A: signed - This option is correct. byte, short, int, and long are all signed integer data types in Java, which means they can represent both positive and negative whole numbers.
Option B: unsigned - This option is not correct. Java does not have built-in unsigned integer data types. Unlike some other programming languages, all integer data types in Java are signed by default.
Option C: Both of the above - This option is not correct because only Option A is true. Java integer data types are signed, not unsigned.
Option D: None of these - This option is not correct because Option A is the correct answer. Java's byte, short, int, and long are all signed integer data types.
So, in Java, byte, short, int, and long are all signed integer data types.
মোঃ আরিফুল ইসলাম
Feb 20, 2025