Wednesday, 18 November 2015

What are the Advantages of Generics

The main advantages of generics is type-safe operations. That means if we want to add any other type then its give error at compile time instead of giving runtime i.e.,ClassCastException

No comments:

Post a Comment