java
java copied to clipboard
Clarify distinction between arrays and collections
pull request
Updated the description of Java arrays to avoid confusion with the term "collection" as used in the Java Collections Framework. Previously, the text referred to arrays as collections, which is inaccurate in Java's formal terminology.
Native Java arrays are not part of the Collections Framework, as they do not implement the Collection interface or its subtypes, such as List, Set, or Map. They are simply fixed-size objects that hold elements of the same type.
I have rephrased the description to make it more accessible for those who are new to Java, avoiding excessive technical jargon while still preventing misunderstandings and aligning the explanation with Java's official definitions.
Reviewer Resources: