How come the first call to someMethod doesn\'t compile without being explicit that it\'s String[]?
It\'s fine to use an array initializer to create a String[] arra
You can only use the { "hello", "world" } initialization notation when declaring an array variable or in an array creation expression such as new String[] { ... }.
See Section 10.6 Array Initializers in the Java Language Specification:
An array initializer may be specified in a declaration, or as part of an array creation expression (§15.10), creating an array and providing some initial values