Link Details

Link 1030325 thumbnail
User 551991 avatar

By macosxnerd101
via dreamincode.net
Published: Sep 11 2013 / 05:11

Collection classes mostly appear in the System.Collections namespace, although some are based on Dictionary structures within the System.Collections.Specialized namespace. Comparing arrays to collections: have to use an integer index to access elements are of a fixed size * store value types, although the values may point to reference types (an array of objects) accept, hold and return elements as object types (but see Generics later in these notes) * This is not entirely the case since Microsoft introduced the Array.Resize method (for a one-dimensional, 0-indexed, array) from .NET 3.5 (but supported earlier). Resize has a performance cost so using a Collection is preferable.
  • 9
  • 0
  • 322
  • 411

Add your comment


Html tags not supported. Reply is editable for 5 minutes. Use [code lang="java|ruby|sql|css|xml"][/code] to post code snippets.

Voters For This Link (8)



Voters Against This Link (0)



    Java Performance Optimization
    Written by: Pierre-Hugues Charbonneau
    Featured Refcardz: Top Refcardz:
    1. Design Patterns
    2. OO JS
    3. Cont. Delivery
    4. Java EE7
    5. HTML5 Mobile
    1. Node.js
    2. Debugging JavaScript
    3. OO JS
    4. JSON
    5. Ajax