Advertisement

Responsive Advertisement

collections vs arrays in java

 In this post, I am gonna write the difference between collections and arrays in the java programming language.


Collections Array
Dynamic size Fixed-size
Algorithms for data manipulation No any behavior
Single API No single API
Can work only with reference type Can work with both primitive and reference type
Relatively lower performance High performance



Post a Comment

0 Comments