📜  java数组和列表的区别——Java代码示例

📅  最后修改于: 2022-03-11 14:52:46.059000             🧑  作者: Mango

代码示例1
In general (and in Java) an array is a data structure generally
consisting of sequential memory storing a collection of objects.

List is an interface in Java, which means that it may have multiple
implementations. One of these implementations is ArrayList, which
is a class that implements the behavior of the List interface using
arrays as the data structure.