Q18
Which of the following is a valid use of generics in Java?
A.
`String text = new String();`
B.
`List list = new ArrayList();`
C.
`HashMap map = new HashMap();`
D.
`ArrayList list = new ArrayList();`
AnswerAnswer: Option D
Solution
Answer: Option D
No explanation is given for this question Let's Discuss on Board