Now, in case of an array, the name of the class is a little complicated. The details (given here: http://docs.oracle.com/javase/8/docs/api/java/lang/Class.html#getName-- ) are:
The internal form of the name consists of the name of the element type preceded by one or more '[' characters representing the depth of the array nesting. The encoding of element type names is as follows: