Computer Science, asked by TbiaSamishta, 1 year ago

Write the number of bytes taken by int and long data types in Java.

Answers

Answered by aqibkincsem
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