This is just a short question but I'm still curious. When I initialize a int
variable with the highest value 2147483647 it's allright. but when I want to initialize a long
and assign it to it's max value, it gives me a "number too large" error
int i = 2147483647;
long j = 9223372036854775807;