Solved

Consider the Following Code Snippet

Question 4

Multiple Choice

Consider the following code snippet:
public static <T> void fun(T[] t) { ...}
Erasure by the compiler of method fun will generate which result?


A) public static void fun(Object[] t) { ...}
B) public static <T> void fun(Object[] t) { ...}
C) public static void fun(Object t) { ...}
D) public static <Object> void fun(Object t) { ...}

Correct Answer:

verifed

Verified

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

Related Questions