Write the number of bytes taken by int and long data types in Java.
Answers
Answered by
1
"Int is a primitive data type of java and line this, you can also find other primitive data types in java such as byte, short, long, float, double, Boolean and char.
bytes taken by int and long data types in Java are:
int 4 bytes -2,147,483,648 to 2,147,483, 647
long 8 bytes -9,223,372,036,854,775,808 to
9,223,372,036,854,775,807
"
Similar questions
Physics,
7 months ago
Math,
7 months ago
Computer Science,
1 year ago
Computer Science,
1 year ago
English,
1 year ago
Math,
1 year ago