What are the similarities between an array and an ArrayList?

Answers were Sorted based on User's Feedback



What are the similarities between an array and an ArrayList?..

Answer / manikandan [ gtec,vellore ].

both array and arraylist can store a duplicate elements in
un ordered way.

Is This Answer Correct ?    14 Yes 0 No

What are the similarities between an array and an ArrayList?..

Answer / paks

Array is a create space of fix size while Arraylist is
depand on dynamic base .it create size depend on dynamic based

Is This Answer Correct ?    5 Yes 8 No

What are the similarities between an array and an ArrayList?..

Answer / harikrishna

An array is indexed fixed number of homogeneous elements.
where as in ArrayList you can create any number of objects
with any type.

Is This Answer Correct ?    4 Yes 10 No

Post New Answer

More Core Java Interview Questions

basic difference b/w ALL types of JDBC driver.

1 Answers   Systematix,


What about interrupt() method of thread class ?

0 Answers  


What is the return type of a program?s main() method?

3 Answers  


How do you override a variable in java?

0 Answers  


what is difference between abstract factory and factory design patterns?

0 Answers  


What are packages and name a few?

4 Answers  


Suppose if we have variable ' I ' in run method, if I can create one or more thread each thread will occupy a separate copy or same variable will be shared?

0 Answers  


Write a program to print 15 random numbers using foreach of java 8?

0 Answers  


What do you understand by an io stream?

0 Answers  


what is the use of reference variable

6 Answers  


What is the purpose of the finally clause of a try-catch-finally statement in java programming?

0 Answers  


what is collatration?

0 Answers  


Categories