0

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?

JohnWinter
  • 1,003
  • 5
  • 12
  • 25

0 Answers0