Computer Science, asked by geetikaarjel, 2 months ago

Name the data types used to store the following values in Java.

i) "Pigeon" ii) –78

iii) 103.6 iv) True​

Answers

Answered by BrainlyProgrammer
1

Question:-

Name the data types used to store the following values in Java.

i) "Pigeon"

ii) –78

iii) 103.6

iv) True

Answer:-

  1. String data type...because it is enclosed in double quotes
  2. int/long/short data type... because it is an integer
  3. float/double data type... because it is a decimal
  4. Boolean data type...because Boolean only has True and False... Secondly...it is not enclosed with single/double quotes
Answered by Oreki
2

I. String

II. byte, short, int or long

III. float or double

IV. boolean

Similar questions