Data Structures in Java
Data Structures in Java
Data Structures in Java
DATA STRUCTURES IN
JAVA
MAPS
Example : MapDemo.java
SETS
GENERICS
Implementing Generic
Types
Type
Variable Meaning
E -----Element type in a collection
K -----Key type in a map
V-----Value type in a map
T -----General type
S , U----Additional general types
Type variables of a generic class follow
the class name and are enclosed in
angle brackets.
Example program
implemented
in
PairDemo.java
Generic Methods
Wrapper classes
Concept of Serialization
Interface java.io.Serializable
A class should implement this interface
in order to enable serialization of
objects.