Briefly describe int,float and Boolean data types
Answers
Answered by
3
Answer:
Image result for Briefly describe int,float and Boolean data types
Primitive data types: The primitive data types include boolean, char, byte, short, int, long, float and double.
...
Java Primitive Data Types.
Data Type Default Value Default size
short 0 2 byte
int 0 4 byte
long 0L 8 byte
float 0.0f 4 byte
4 more rows
Explanation:
plzz mark as a brainlist.
Answered by
1
Int data type always returns the exact value after solving equation.
eg. print(int(2+2.5))
O/P - 4.5
Float data type do not returns decimal part of the no.after solving the equation.
eg. print(float(17.5))
O/P - 17
Boolean data type returns only "true" or "false" as a result.
eg. 5 = 10 - 5
O/P - True
Similar questions
Math,
3 months ago
Social Sciences,
3 months ago
Math,
3 months ago
English,
7 months ago
English,
11 months ago