NETHRAVATHI H, MEGHARAJA D S, MANGESH S PAI, SYED ASIM K, RAKSHITHA H J, PRIYANKA G M, NIKHITHA S
DOI Number:
10.6084/m9.figshare.13650143
Keywords:
Bounded Type, Collections, Generics, Hash Se, Maps,Template, Wildcards
Abstract
The Java Generics concept can be used only for storing objects but not for primitive values. It is possible to create classes, interfaces and methods that will work in a type - safety manner. The Generics can be called type erasers since the generic information is existing only up to compilation, once compilation is done then all the generic information will be erased.
The Java Collection interface represents the operations possible on a generic collection, like on a List, Set, Stack, Queue and Deque. For instance, methods to access the elements based on their index are available in the Java Collection interface.