Difference between array and arraylist.
Answer Posted / chinnu
Array:arrays is not for our requirement once we create a size next we cant change the size.in advance we cant estimate the size.its taking only homogeneous elements.
Array list:array list is same as collections and vectors.array list is or requirement we can change the size in advance also and estimate the size.its taking both homogeneous and heterogeneous elements .
| Is This Answer Correct ? | 4 Yes | 1 No |
Post New Answer View All Answers
what is thread? What are the high-level thread states? : Java thread
What are the basic control structures?
Can we change the value of static variable?
What happens if a try-catch-finally statement does not have a catch clause to handle an exception that is thrown within the body of the try statement?
What are untrusted applets?
What are methods?
What is purpose of applet programming?
How are observer and observable used in java programming?
Explain wait(), notify() and notifyall() methods of object class ?
What is int argc char * argv?
What is scope of a variable?
Can we use return in constructor?
When do you call copy constructor?
Give the hierarchy of inputstream and outputstream classes.
Can we define package statement after import statement in java?