Solved

Select the Correct Header for This Generic Print Method

Question 47

Multiple Choice

Select the correct header for this generic print method.
Public static void print(E[] a) {
For (int i = 0; i < a.length; i++)
{
System.out.println(a[i] + " ") ;
}
}


A) public static <E> void print(E[] a)
B) public void print(E [] a)
C) public static <E> void print(E a)
D) the header is correct

Correct Answer:

verifed

Verified

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

Related Questions