Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in Java by (7k points)

What is the difference between a list and an array in Java?

1 Answer

0 votes
by (13.1k points)

An array is a data structure consisting of sequential memory storing a collection of objects.

The 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 the arrays as the data structure.

There are several other classes that implement the List interface.

Want to learn Java? Check out the Java certification from Intellipaat.

Related questions

0 votes
1 answer
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer

Browse Categories

...