Question: what is the difference between long data type?
Answer: The basic difference between the type int and long is of their width where int is 32 bit, and long is 64 bits. ... In Java, the range of type int is from –2,147,483,648 to 2,147,483,647 whereas, the range of type long is from –9,223,372,036,854,775,808 to 9,223,372,036,854,775,807 which is very much greater than type int.