Solved

Consider the Following Code Snippet

Question 28

Multiple Choice

Consider the following code snippet:
public static void reverse(List<?> list) { ...}
This method declaration is equivalent to which of the following declarations?


A) public static <List> void reverse(List list) { ...}
B) public static void reverse(List<? extends E> list) { ...}
C) public static <D> void reverse(List<D> list) { ...}
D) public static void reverse(List<? super E> list) { ...}

Correct Answer:

verifed

Verified

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

Related Questions