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

Answer Posted / satya

Every body missed out one main difference i.e Array used to
store primitive data(of type int,char etc.,) values where
as Arraylist is user to store objects.

Is This Answer Correct ?    12 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to call one constructor from the other constructor ?

611


Can we have two main methods in a java class?

542


Why we used break and continue statement in java?

567


I don’t want my class to be inherited by any other class. What should I do?

583


What is map in java?

522






why are wait(), notify() and notifyall() methods defined in the object class? : Java thread

557


Give me some null interfaces in java?

611


How do you change an int to a string?

554


What is the purpose of static methods and static variables?

548


Explain constructors and types of constructors in java.

646


Why should I use abstract class?

575


How can constructor chaining be done using this keyword?

591


When do we use synchronized methods in java?

587


What do you mean by pointer value and address?

581


What is the numeric promotion?

509