Solved

Consider the Following Line of Code for Calling a Method

Question 69

Multiple Choice

Consider the following line of code for calling a method named func1:
Func1(listData, varData) ;
Which one of the following method headers is valid for func1, where listData is an integer array list and varData is an integer variable?


A) public static void func1(int[] listData, int varData)
B) public static void func1(ArrayList<Integer> listData, varData)
C) public static void func1(ArrayList<Integer> ldata, int vdata)
D) public static void func1(int vdata, ArrayList<Integer> ldata)

Correct Answer:

verifed

Verified

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

Related Questions