What is the need of collection framework in java?
问题 What is the need of Collection framework in Java since all the data operations(sorting/adding/deleting) are possible with Arrays and moreover array is suitable for memory consumption and performance is also better compared with Collections. Can anyone point me a real time data oriented example which shows the difference in both(array/Collections) of these implementations. 回答1: Arrays are not resizable. Java Collections Framework provides lots of different useful data types, such as linked