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

What is the properties class in java programming?

528


Why object class is super class for every class in java?

551


Explain how to convert any java object into byte array.

535


What's the base class of all exception classes?

550


How to avoid memory leak in java?

586






Can we rethrow the same exception from catch handler?

550


How can I debug the Java security exceptions and AccessControlExceptions?

615


How many bytes is 255 characters?

539


Are strings immutable in java?

512


What is the difference between break and continue statements?

534


What variables are stored in stack?

515


What is difference between path and classpath variables?

551


Will set allow duplicates in java?

489


What is difference between stringbuffer and string?

480


What do you mean by Function Overloading in java?

609