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 the difference between this() and super() in java?
What is the difference between the file and randomaccessfile classes?
Is null an object java?
What do you meant by active and passive objects?
Can we have 2 main methods in java class?
What is unicode datatype?
How many JVMs can run on a single machine and what is the meaning of Just-In-Time (JIT) compiler?
Explain parallel processing in java8?
What is set and get methods in java?
What is the use of bufferedreader?
how many types of Inheritance?
What about instanceof operator in java?
What is local variable and instance variable?
Difference between Linked list and Queue?
How do you include a string in java?