Solved

Which One of the Following Is a Correct Declaration for a Method

Question 45

Multiple Choice

Which one of the following is a correct declaration for a method named passAList that has as arguments an array list myList of size 10 and an integer array intArr of size 20, and that modifies the contents of myList and intArr?


A) public static void passAList(ArrayList<Integer> myList(10) , int[] intArr)
B) public static void passAList(ArrayList<Integer> myList, int[20] intArr)
C) public static void passAList(ArrayList<Integer> myList, int[] intArr)
D) public static void passAList(ArryaList<Integer> myList, int intArr)

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions