Shared Tutorials
Tutorials Shared by the Internet Community
Advertisements
| Top Tutorials | New Tutorials | Submit | Login | Register |
Tutorial Basic Detail
How to create read only Collection in Java with Example
Read only collection means any collection which once created can not be modified i.e. you can not add new elements, you can not remove elements and evhttp://javarevisited.blogspot.com/2012/07/create-read-only-list-map-set-example-java.html
Total Hits: 3687
Total Votes: 11 votes
Average Rating: 4.18 out of 5
Category: JAVA/Collections
Description:
Read only collection means any collection which once created can not be modified i.e. you can not add new elements, you can not remove elements and even you can not change value of existing element using set(index) or similar method. Read only Collection can also be called as unmodifiable or Immutable Collection in Java. In this article we see example of create read only collection in Java i.e. creating read only or immutable List, Set and Map in Java.Rating Detail
| Stars | Percentage | Total Vote |
|---|---|---|
![]() |
![]() ![]() 27.27% |
3 |
![]() ![]() |
![]() ![]() 18.18% |
2 |
![]() ![]() ![]() |
![]() ![]() 9.09% |
1 |
![]() ![]() ![]() ![]() |
![]() ![]() 0% |
0 |
![]() ![]() ![]() ![]() ![]() |
![]() ![]() 45.45% |
5 |





27.27%

18.18%

9.09%

0%

45.45%