Given two arrays, studentNames that maintains a list of stud…

Given two arrays, studentNames that maintains a list of student names, and studentScores that has a list of the scores for each student, which XXX and YYY prints out only the student names whose score is above 80? Choices are in the form XXX / YYY.String[] studentNames = new String[NUM_STUDENTS];int[] studentScores = new int[NUM_STUDENTS]; int i; for (i = 0; i 80) { System.out.print(YYY + ” “); }}

What is the size of groceryList after the code segment?Array…

What is the size of groceryList after the code segment?ArrayList groceryList;groceryList = new ArrayList();groceryList.add(“Bread”);groceryList.add(“Apples”);groceryList.add(“Grape Jelly”);groceryList.add(“Peanut Butter”);groceryList.set(1, “Frozen Pizza”);