Intellipaat Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in Java by (13.1k points)
Can anyone help me when I can LinkedList and when to use ArrayList?

1 Answer

0 votes
by (26.7k points)

LinkedList can be used for addition/deletion operations for modification. Basically, LinkedList is much faster than ArrayList in such cases as addition or deletion. Whereas, for read-only collections, ArrayList can be used.

I hope this will help.

Want to become a Java Expert? Join Java Course now!!

Want to know more about Java? Watch this video on Java Tutorial for Beginners | Java Programming:

Related questions

0 votes
1 answer
0 votes
1 answer
asked Apr 1, 2021 in Java by dante07 (13.1k points)
0 votes
1 answer
asked Mar 6, 2021 in Java by dante07 (13.1k points)
0 votes
1 answer

31k questions

32.8k answers

501 comments

693 users

Browse Categories

...