DEV Community

Cover image for Collection in Java
SELVAKUMAR R
SELVAKUMAR R

Posted on

Collection in Java

Collection is the java framework to store and manage the group of objects

It provide the interface and class for managing the objects

Collection interface have two sub interface Listand Set

List interface having the two sub class ArrayListand
LinkedList

Set interface having the three sub class Hashsetand
LinkedHashset and Treeset

Boxing -> Change from Primitive datatype to non primitive datatype

Unboxing -> Change from Non Primitive datatype to primitive datatype

Autoboxing -> java follows this boxing to using datatype

Top comments (1)

Collapse
 
vigneshwaralingam profile image
Vigneshwaralingam

can u add some example codes for boxing ,unboxing,autoboxing