What is the difference between an Array and an ArrayList?

  • Arrays are strongly typed.
  • ArrayLists are not strongly typed.
  • Arrays are fixed length and cannot be resized dynamically during runtime.
  • ArrayList can resize dynamically during runtime.
  • Elements in an ArrayList can have a combination of combined data types or a single data type. 

Note: If an ArrayList has combined data types then a type cast is a must.

No comments:

Post a Comment