What is the difference between List And Arraylist? - ProProfs Discuss
Advertisement

What is the difference between List And Arraylist?

What is the difference between List And Arraylist?

Change Image    Delete

Asked by R. Jones, Last updated: Nov 09, 2024

+ Answer
Request
Question menu
Vote up Vote down

1 Answer

Leo Samuels

Leo Samuels

A good learner

Leo Samuels
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.

upvote downvote
Reply 

Advertisement
Advertisement
Search for Google images Google Image Icon
Select a recommended image
Upload from your computer Loader
Image Preview
Search for Google images Google Image Icon
Select a recommended image
Upload from your computer Loader
Image Preview
Search for Google images Google Image Icon
Select a recommended image
Upload from your computer Loader

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