I have run into these two documentations:
and I'm wondering what the difference is between these two classes. They both provide a different set of static methods, but why are they separate? What is the deeper difference? And what is the relation between them and with the normal instance of array like int[].
I notice that they are from totally different packages, but still hope to find some clarification. Thanks.
Arraysit is a utility class which provides additional functionality to make it easier to work with arrays, performing (some) common functionality.Arrayis a representation of a instance of an array, through which you can access some of it's properties and is used to support the reflections API. They are basically doing different things for different purposes.Arrayscan work with different instances of arrays