Tuesday, December 18, 2007

Generics

ArrayList vs. List<T>

List<T> has three major benefits:


  • Code reusability
  • Type safety: compile-time type checking
  • Efficiency: avoid casting, boxing and unboxing
blog comments powered by Disqus