Physics, asked by Anonymous, 3 months ago

what are data types in java ?Explain in java

Answers

Answered by Anonymous
1

Answer:

Data Types in Java. Data types specify the different sizes and values that can be stored in the variable. ... Primitive data types: The primitive data types include boolean, char, byte, short, int, long, float and double. Non-primitive data types: The non-primitive data types include Classes, Interfaces, and Arrays.

Answered by VivGuy
0

Answer:

1- Byte 2-Short 3-Int 4-Long 5-Float 6-Double 7-Boolean 8-Char

Explanation:

Byte stores numbers from -128 to 127

Short stores numbers from -32,768 to 32,767

I.n.t(Integer) stores numbers from -2,147,483,648 to 2,147,483,647

Long stores numbers from -9,223,372,036,854,775,808 to 9,223,372,036,854,775,807

Float stores fractions of 6-7 digits (or less)

Double stores fractions of 15 digits (or less)

Boolean stores True or False values

Char stores Single characters or ASCII values

Similar questions