0% found this document useful (0 votes)
37 views

Arrays Class in Java

The Arrays class in Java provides static methods to create and access arrays dynamically. It consists solely of static methods from the Object class that can be called directly from the Arrays class name. The Arrays class offers facilities to fill arrays with values, sort arrays, perform binary searches in sorted arrays, and more.

Uploaded by

Anish Chib
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
37 views

Arrays Class in Java

The Arrays class in Java provides static methods to create and access arrays dynamically. It consists solely of static methods from the Object class that can be called directly from the Arrays class name. The Arrays class offers facilities to fill arrays with values, sort arrays, perform binary searches in sorted arrays, and more.

Uploaded by

Anish Chib
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

Arrays class in Java

The Arrays class in java.util package is a part of the Java Collection Framework.
This class provides static methods to dynamically create and access Java arrays. It
consists of only static methods and the methods of Object class. The methods of this
class can be used by the class name itself.
Facilities provided by the Java-Arrays Class:
There are often times when we need to do following tasks on an array in Java.

 Fill an array with a particular value. We usually do it with the help of a for loop.
 Sort an array.
 Binary search in sorted array.
 And many more.

You might also like