Given a method declared as public static List process(List nums) A programmer wants to use this method like this // INSERT DECLARATIONS HERE output = process(input); Which pairs of declarations could be placed at // INSERT DECLARATIONS HERE to allow the code to compile? (Choose all that apply.)

  1. ArrayList input = null; ArrayList output = null;

  2. ArrayList input = null; List output = null;

  3. ArrayList input = null; List output = null;

  4. List input = null; ArrayList output = null;

  5. List input = null; List output = null;

  6. List input = null; List output = null;


Correct Option: B,E,F

Find more quizzes: