Difference between array and arraylist.
Answer Posted / suhas
Array: can store primitive ArrayList: Stores object only
Array: fix size ArrayList: resizable
Array: can have multi dimensional
Array: lang ArrayList: Collection
framework
| Is This Answer Correct ? | 74 Yes | 12 No |
Post New Answer View All Answers
What is the difference between compiler and jvm?
Why do we need strings in java?
How to find the index of the largest number in an arraylist java?
Can a main method be overloaded?
Detail discussions on JVM, memory management and garbage collector.
What is ternary operator in java?
What is java util concurrentmodificationexception?
Which collection is ordered in java?
What does compareto () do in java?
Can we create object of inner class in java?
Why are functions called methods in java?
What is the use of set in java?
Explain the purpose of garbage collection in Java?
What is the primary benefit of encapsulation?
Can we declare the main method of our class as private?