Difference between array and arraylist.
Answer Posted / bhavani
ARRAY:collection of same data items.
2.array is always of fixed size.
3.initializing an array is too long,then it results in wastage
of memory in heap.
ARRAYLIST : Collection of different data objects.
2.Dynamic in nature.
3.automatic resizing of the list.
4.methods used is:add,remove,insert,clear,sort,reverse....
Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
What is this () in java?
Can list contain null in java?
How will you reverse a singly-link list?
How many types of operators are there?
Can we create object of inner class in java?
How are observer and observable used in java programming?
Difference between Linked list and Queue?
What are the supported platforms by java programming language?
Explain serialization and deserialization in java?
Is array a class?
How many bytes is a char in java?
How many bits is a string?
What are the escape sequences in java?
what is an objects lock and which objects have locks? : Java thread
What is array length in java?