Hi,
Im facing this wierd problem while using getClass method on different references
e.g
intarray.getClass() gives me "Class [I"
where intarray is a reference to int[]
Objarray.getClass() gives me "Class [Ljava.lang.Object;"
where Objarray is a reference to Object[] .. also why does it have ";" in the end
myclass.getClass() gives me "Class [Lmyclass;"
where myclass is a class created by me.
My Question are
a. Why doesnt it show the entire name of the class in eg. 1
b. What determines the prefix appended to the class names as in eg. 2 &3
Thanks
Im facing this wierd problem while using getClass method on different references
e.g
intarray.getClass() gives me "Class [I"
where intarray is a reference to int[]
Objarray.getClass() gives me "Class [Ljava.lang.Object;"
where Objarray is a reference to Object[] .. also why does it have ";" in the end
myclass.getClass() gives me "Class [Lmyclass;"
where myclass is a class created by me.
My Question are
a. Why doesnt it show the entire name of the class in eg. 1
b. What determines the prefix appended to the class names as in eg. 2 &3
Thanks