Question: how initialize string array in java?
Answer: //inline initialization String[] strArray1 = new String[] {"A","B","C"}; String[] strArray2 = {"A","B","C"}; //initialization after declaration String[] strArray3 = new String[3]; strArray3[0] = "A"; strArray3[1] = "B"; strArray3[2] = "C"; All the three string arrays will have same values.