Solved

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

Question 115

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 void passAList(ArrayList<Integer> myList(10) , int[] intArr)
B) public void passAList(ArrayList<Integer> myList, int[20] intArr)
C) public void passAList(ArrayList<Integer> myList, int[] intArr)
D) public 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

Unlock this Answer For Free Now!

View this answer and more for free by performing one of the following actions

qr-code

Scan the QR code to install the App and get 2 free unlocks

upload documents

Unlock quizzes for free by uploading documents