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

What is the use of arraylist in java?

506


What does bitwise or mean?

542


Why is the type for real numbers called double?

520


Name the components that are termed to be Heavy-weight component but available in Light-weight components?

1959


Is an array a vector?

529






Is it possible to define a method in java class but provide it’s implementation in the code of another language like c?

554


Is a char always 1 byte?

482


Explain method local inner classes ?

568


What is boolean false?

503


Make a data structure and implement an algorithm to print all the files in a directory. (The root directory can have sub-directories too.)

821


what is abstract class in Java?

621


How hashset works internally in java?

556


How do you declare an empty string?

598


What is split return?

477


What are benefits of java?

539