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

Java MCQs

Given a method declared as:

public static List process(List nums)

A programmer wants to use the method like this:

// INSERT DECLARATIONS HERE

output = process(input);

Which pair of declarations could be placed at // INSERT DECLARATIONS HERE to allow the code to compile? (Choose all that apply.)

Answer

Correct Answer:

ArrayList<Integer> input = null; List<Integer> output = null;

Explanation:

Note: This question has more than 1 correct answers

Note: This Question is unanswered, help us to find answer for this one

Java Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it

search

Java Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it