HI WELCOME TO SIRIS

difference between array and array list

Leave a Comment
  1. Arrays are strongly typed (cannot generate Type Errors at runtime ) but not resizable => Use it when you know exactly the number of elements you have.
  2. ArrayList are resizable but loosely typed and so have performance overhead because of Boxing/ Unboxing problem and could generate mis match type errors at Runtime.

0 comments:

Post a Comment

Note: only a member of this blog may post a comment.