Long in Java has size 2^63-1. But if I write a code like this, my IDE says Incompatible types: required int but found long.
long [] array = new long[4_000_000_000L];
What is the problem here?
Long in Java has size 2^63-1. But if I write a code like this, my IDE says Incompatible types: required int but found long.
long [] array = new long[4_000_000_000L];
What is the problem here?