Computer Science, asked by hirthik1184, 1 year ago

Which is not an integer data type which is (a) single (b)byte (c) short (d) integer?

Answers

Answered by nitish8089
0
ur Answer
(a) \: single \: is \: not \: an \: integer \: datatype
Answered by AncyA
0

Answer:

The correct option is option (a)

Single is not an integer data type.

Explanation:

  • Numerical values or number which are represented without fractional numbers or decimal points used to represent in Java is known as Integer Data types.

Integer data type is divided in to four types:

  • Byte
  • Int
  • Long
  • Short

Byte: It has a least memory size used to save smallest integer data type. Has 8 bit signed two complement integer.

Short : The memory size of short is greater than byte and shorter than int. Has 16 bit signed two complement integer.

Int : Used to represent integer value in Java Programming. Has 32 bit signed two complement integer.

Long : Long is used to store huge number of data values. Has 64 bit signed two complement integer.

  • Single comes under the type of Data type and not under integer data type.

Single: It contains floating point values and uses 32 bits of memory.

The correct answer is option (a)

#SPJ2

Similar questions