[Multiple correct answers] Write a line of Java code to create an array of integers called studentIDs that can hold 1200 values.
int [] studentIDs = new int[1200];
int studentIDs [] = new int[1200];
int studentIDs = new int[1200];
int [] studentIDs = new int(1200);
int studentIDs [] = new int(1200);
int [] studentIDs = int[1200];
int studentIDs [] = int[1200];
int [] studentIDs = new int[1200]; Correct. int studentIDs [] = new int[1200]; Correct. int studentIDs = new int[1200]; Wrong. Because there should be [] at left side of assignment operator int [] studentIDs = new int(1200); Wrong. Because we have to use [ and ] instead of ( and } int studentIDs [] = new int(1200); Wrong. Because we have to use [ and ] instead of ( and } int [] studentIDs = int[1200]; Wrong. Because we have to new key word right side of assignment operator int studentIDs [] = int[1200]; Wrong. Because we have to new key word right side of assignment operator Java code to create an array of integers called studentIDs that can hold 1200 values int [] studentIDs = new int[1200]; int studentIDs [] = new int[1200];
Get Answers For Free
Most questions answered within 1 hours.