When I run the following code I get the address of the array:
int arr[] = {2,5,3};
System.out.println(arr); // [I@3fe993
But when I declare a character array and print it the same way it gives me the actual content of the array. Why?
char ch[] = {'a','b','c'};
System.out.println(ch); // abc