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 |
What is canonical name in java?
Which is better stringbuilder or stringbuffer?
What is scope & storage allocation of global and extern variables? Explain with an example
What is the is a and has a relation ship in oops concept in java?
What is a class variable?
Where the CardLayout is used?
Why we should declare the variables as static and final in interfaces?
can java object be locked down for exclusive use by a given thread? : Java thread
Is simpledateformat safe to use in the multithreaded program?
Name the components that are termed to be Heavy-weight component but available in Light-weight components?
What is the purpose of finalization in java programming?
2) Suppose there are 5 directories having lot of files (say txt files) in each directory. 2 things :- 2.1) You want to search for filenames which have a particular pattern. 2.2) Out of these filtered files you want to search for a particular keyword or a search string. How can you achieve this?