(1) It saves memory space as in immutable types variable names are stored as reference to value object.
(2) It is very useful to use as constant which remains same through out the program
(3) Immutable data are quicker to access then mutable data.
(1) It saves memory space as in immutable types variable names are stored as reference to value object.
(2) It is very useful to use as constant which remains same through out the program
(3) Immutable data are quicker to access then mutable data.