Javatpoint Logo

Why do we have to declare the parameter types on both side in generics?

By: pnsmgl*** On: Thu Mar 23 10:24:19 IST 2017     Question Reputation20 Answer Reputation4 Quiz Belt Series Points0  24Blank User
ArrayList<String> al = new ArrayList<String>()

what is the use of right side parameter (<String>)? Thanks in advance
Up0Down