Content deleted Content added
No edit summary |
|||
Line 12:
For a more concrete example, in Java, a {{Javadoc:SE|java/util|LinkedList}} can change its size, but an array must have a fixed size. One might desire to have a <code>LinkedList</code> of <code>int</code>s, but the <code>LinkedList</code> class only lists references to dynamic objects — it cannot list primitive types, which are value types.
To
On the other hand, [[C Sharp (programming language)|C#]] has no primitive wrapper classes, but allows boxing of any value type, returning a generic <code>Object</code> reference.
|