which of the following is not an data type modifier
a) signed
b) int
c) long
D) short
answer please friends
Answers
Answer:
int is not the type of data moldifier so the correct answer is int
Among the options provided, (b) int, (c) long, and (d) short are all data types in Java, whereas (a) signed is not a data type modifier in Java.
In Java, all primitive data types (such as int, long, short, etc.) have a default sign, which means that they can hold both positive and negative values. Therefore, the concept of "signed" does not apply as a data type modifier in Java, and it is not a valid option.
In Java, data type modifiers are used to modify the behavior of data types, such as limiting the range of values that a variable can hold, specifying the precision of a floating-point number, or defining the number of bits used to represent a value.
However, "signed" is not a data type modifier in Java. Instead, it is a characteristic of certain data types, which indicates whether they can hold both positive and negative values.
In Java, the primitive data types int, long, short, byte, float, double, and char all have a default sign. For example, int is a signed data type that can hold both positive and negative integer values within a certain range.
Therefore, the correct answer is (a) signed, as it is not a data type modifier in Java.
So, the answer is (a) signed.
#SPJ3