What is the difference between array and arraylist?
what is the difference between arraylist and linkedlist?

Answer Posted / g.arun

Array is not growable and Arraylist is growable

We can access elements in a Arraylist randomly and in
LinkedList we cannot(means for accessing an element we have
traverse from first elemet in Linkedlist.

Is This Answer Correct ?    41 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can we create our own wrapper class in java?

560


when should you use stringbuilder class in a program?

530


What are the methods used to implement for the key object in the hash map?

575


Give differences between Quicksort & Mergesort. When should these sorts be used and what is their running time?

580


What is the role of the java.rmi.naming class?

536






How does singleton class work?

537


Does importing a package imports its sub-packages as well in java?

563


How do you reverse sort in java?

514


Can we create an object of static class in java?

604


What are predefined functions?

589


What is multi-catch block in java?

630


Explain the difference between hashmap and hashtable in java?

498


Does constructor return any value?

587


How to do a true java ping from windows?

624


Why super is first line in java?

568