What is difference between array and arraylist in java?
Answer / Pramd Kumar
In Java, Array and ArrayList are two different data structures used for storing collections of elements. An array is a fixed-size collection where elements are stored in contiguous memory locations, whereas ArrayList is a dynamic array that can resize itself as elements are added or removed.nnArrays have a fixed size at the time of declaration and cannot change their size, while ArrayLists can automatically grow or shrink to accommodate new elements.
| Is This Answer Correct ? | 0 Yes | 0 No |
What is ascii format?
Why do we need hashset in java?
What is Major and importance difference between for and foreach loop ?
What is nan inf?
What is a thin-client application?
What is supplier in java?
how to create multithreaded program? : Java thread
Is string a datatype?
What are meta-annotations?
What is the memory leak in java?
What is scanner in java?
class test { private static void main(String []adsf) { } } explain me that the above code is error or exception