What is the difference between List And Arraylist? - ProProfs Discuss
Topics
Products
Follow Us:

What is the difference between List And Arraylist?

Asked by R. Jones, Last updated: Jul 04, 2020

+ Answer
Request

1 Answer

Leo Samuels

A good learner

Leo Samuels, Content Writer, PG, California

Answered Jul 11, 2019

The Java program, which was initially called Oak, was launched in the year 1991, and a similar one to it is C#, which was initially launched in 1999. These two programs are in direct competition with themselves. ArrayList and List are bits of code in C# and Java that permit in the setting and calling of parameters. Mostly, lost is an interface that is used with and also for LinkedList or ArrayList.

The Java program, which was initially called Oak, was launched in the year 1991, and a similar one
The List is a generic or general too, while the others seem to be more specific. The code appears like this; List list = new ArrayList(); this is accompanied by the command in which classes would be added. They can be called at any time using another bit of code after the classes have been added. In theory, List can substitute ArrayList, though this is not advisable. In short, List is an interface, while ArrayList is a class. Also, List is generic, and ArrayList is precise. Though it is discouraged, the two can substitute themselves.

 

Search for Google images
Select a recommended image
Upload from your computer
Search for Google images
Select a recommended image
Upload from your computer
Search for Google images
Select a recommended image
Upload from your computer

Email Sent
We have sent an email to your address "" with instructions to reset your password.