what would be the name of class representing an array object? eg:
int a[] = new int[5]
here a is the reference variable.
what is the name of class whoes object’s reference id hold in a
System.out.println(a.getClass().getName()) prints [I
is there any rule for naming?
Class name for Array in java
For Java arrays,the class name is ‘[‘ followed by an encoded name of the element class. The number of ‘[‘ character represent the number of dimension of the array
for example : for float type array class name is [F
for int [I
for double a[][]=new double[2][3]
class name is [[D
source: http://ohmjavaclasses.blogspot.com/2011/12/class-name-for-array-in-java.html