Javais strictly typed language all arrays are checked at runtime specifying the index inside the brackets gives you the ability to hold of type values that you had declared.when you specify  its nothing but it is not capable to hold values its like an empty container of no use when you trying to assign the value during run time it through runtime exception
Creativity is nothing but Breaking Rules
Joined: Jan 28, 2009
Thanks to both of you!!
My requirement was to pass an empty short array to a method, so short temp = new short is nothing but creating an empty array. Is it correct?
So yes, it is an empty array. And empty arrays can still be useful - as parameters to methods. Especially in Collection.toArray(Object) - the type of the passed array determines the type of the returned array.