Creates a new array instance with the given size with the javaClass as component type.
Return
a new array of T instance with the given size.
Parameters
size of the array to create. Must not be negative.
Throws
when unable to create an array instance.