/easyRandom

After type erasure kicks it will remove all type information to get the type information see this example.

Primary LanguageJava

easyRandom

After type erasure kicks it will remove all type information to get the type information back see this example.

  1. In this example person class contains the field List of type string nickNames. after compilation type information will be removed from the List so it will turn into List.

  2. To get the type information what it was i.e before type erasure kicks in to know this info please understand the program

For more understanding :-

https://www.beyondjava.net/type-erasure-revisited