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 |
Can we execute java program without main method?
How will you get the platform dependent values like line separator, path separator, etc., ?
What is native method in java?
How does system arraycopy work in java?
What are the different ways of implementing thread? Which one is more advantageous?
What is an array in java?
Explain the difference between map and flatmap stream operation?
What are the advantages and disadvantages of reference counting in garbage collection?
What is the range of the char type?
Difference between nested and inner classes ?
Can java run on google chrome?
What is string intern in java?