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

Is array size fixed in java?

0 Answers  


What is core java used for?

0 Answers  


What are listeners in java and explain ?

2 Answers   TCS,


What is the requirement of thread in java?

0 Answers  


How will you get the platform dependent values like line separator, path separator, etc., ?

0 Answers  






Why singleton class is used in java?

0 Answers  


What are runtime exceptions?

0 Answers  


Why call by value prevents parameter value change?

0 Answers  


What is a super method?

0 Answers  


How do you create a method in java?

0 Answers  


Can we inherit inner class?

0 Answers  


we r taking <load-on-startup>0</load-on-startup> <load-on-startup>1</load-on-startup> in deployment descripter for loading servlets like serv1 N serv2? so 'll it take serv1 or serv2

2 Answers   CSC,


Categories