Java boolean Array - initializing a boolean array in java

String names[]=new String[7]; or. String names[]; names= new String[7]; Arrays of reference types are stored differently than an array of built-in types. Declaration is the same. Allocation is different. When a string value is assigned, storage for that string is created and that address is stored in the array. Each string value may vary in length. ................
................