What are the similarities between an array and an ArrayList?
Answers were Sorted based on User's Feedback
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 |
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 |
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 |
Is array size fixed in java?
What is core java used for?
What are listeners in java and explain ?
What is the requirement of thread in java?
How will you get the platform dependent values like line separator, path separator, etc., ?
Why singleton class is used in java?
What are runtime exceptions?
Why call by value prevents parameter value change?
What is a super method?
How do you create a method in java?
Can we inherit inner class?
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