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 primitive data type in java?
Can Applet have constructors?
Why for each loop is used?
What is the final variable?
What is the major difference between linkedlist and arraylist?
Should database connections be singleton?
Is hashmap thread safe?
Name the class that used to read objects directly from a stream?
what is the difference between static class and singleton class? can we create static class?
2 Answers L&T, Octazen, Vamsi Labs,
How could Java classes direct program messages to the system console, but error messages, say to a file?
What are the different approaches to implement a function to generate a random number?
0 Answers Axtria, ITC Indian Tobacco Company,
How do you control extraneous variables?