Solved

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

Question 15

Multiple Choice

Which one of the following is a correct declaration for a method named passAList with the array list num of size 5 as a parameter?


A) public static void passAList(ArrayList<Integer> num[5])
B) public static void passAList(ArrayList<Integer> num, 5)
C) public static void passAList(ArrayList<Integer> num)
D) public static void passAList(num)

Correct Answer:

verifed

Verified

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

Related Questions