AN APPROACH TO GENERICS & COLLECTIONS

  • Unique Paper ID: 150655
  • Volume: 7
  • Issue: 8
  • PageNo: 204-207
  • 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.

Cite This Article

  • ISSN: 2349-6002
  • Volume: 7
  • Issue: 8
  • PageNo: 204-207

AN APPROACH TO GENERICS & COLLECTIONS

Related Articles