Generics

Rule1: Avoid using Raw types:

Using Raw type is prone to run-time error
Example:
List namesList=new List();
namesList.add(10);
namesList.add(“kabultar”);
//below code will result in error at run tumme
String a=namesList.get(0);

Published by

Unknown's avatar

sevanand yadav

software engineer working as web developer having specialization in spring MVC with mysql,hibernate

Leave a comment