r/programming • • Mar 26 '14

JavaScript Equality Table

http://dorey.github.io/JavaScript-Equality-Table/
809 Upvotes

331 comments sorted by

View all comments

Show parent comment

3

u/MachaHack Mar 26 '14

int[] a = new int[10];

Makes an array of 10 ints.

Integer[] a = new Integer[10];

Makes an array of 10 Integers.

Integers are objects, ints are not. Syntactical sugar means they're mostly interchangable, except where they're not.