Difference between array and arraylist.
Answer Posted / karunakar
Array is the collection of values of the same data type
>the variables in an array is called array elements
>Array is a reference type data type
>The array structure in System's Memory
Array list is a class .
when you want to access the elements of an array through its
index value location in an array,use an ArrayList.
The use of the arraylist is an alternative to the use of th
array.
The Methods Of ArrayList class are
1)Add
2)Remove
3)Clear
4)Insert
5)TrimToSize
6)Sort
7)Reverse
| Is This Answer Correct ? | 47 Yes | 12 No |
Post New Answer View All Answers
What is a char in java?
Is hashset sorted in java?
What is passing by reference in java?
How do you declare an array that will hold more than 64KB of data?
What is the mapping mechanism used by java to identify IDL language?
Difference difference paint() and paintcomponent()?
Why pointers are not used in java?
What is the purpose of a transient variable?
What do you mean by default constructor in java?
What is a text string?
What are the difference between composition and inheritance in java?
Discuss different types of errors that generally occur while programming.
What is immutable data?
Why Do I Get A "permission Denied" Error After Downloading The .jnlp Java Launcher For The Vkvm?
Why is multithreading important?