O'Reilly logo
  • Michael ss thinks this is interesting:

f you want to include a large amount of data in a Java program, do not use array literals, because the Java compiler will create lots of Java bytecode to initialize the array. The better way is to store the data in an external file, read its contents at runtime, and initialize the array elements using these values.

From

Cover of Java Programming

Note

do not use array literals when wanting to include a large amount of data