Hi Srikanth,
I found some interesting observation with your code.
output [S@1b90b39 --> Sop(new short[] {1,2,3,4,5});
[I@1b90b39 --> Sop(new int[] {1,2,3,4,5});
[B@1b90b39 --> Sop(new byte[] {1,2,3,4,5});
1.Array's are represented as objects in
java.
2.Object's toString() method displays fallowing information:
className@hashCode.
in our case its an array.
So for class name it has taken
S for short
I for int
B for byte.
fallowed by @ , 1b90b39(hashcode).
Please get back to me ...