Java Generics for Beginners

Introduction

As a java programmer, we all have to face coding errors called bugs during both compile-time and runtime. We all have more or fewer mistakes in our codes but it is always easier to identify compile-time issues than runtime ones. On the other hand, it is always worth letting the compiler know about memory allocation and validation of variables for better type safety. Well, Java 5 introduced their…