posted 8 years ago
You can either use array declaration or array literal (but only when you declare and affect the variable right away, array literals cannot be used for re-assigning an array).
For primitive types:
For classes, for example String, it's the same:
They say you are what you eat, but I couldn't remember eating a legend