The video takes an example of int array and char array ,and explains how java automatically converts an array of char (char[]) to a string-like representation when printed because of how the language is designed to handle character arrays. This behavior stems from the close relationship between character arrays and strings in Java.
The println(char[]) method is part of the PrintStream class and is specifically overloaded to handle character arrays by printing them as a string of characters.
Other arrays, like int[], do not have a similar overloaded method, so Java defaults to printing the memory reference unless you explicitly convert the array to a string using utilities like Arrays.toString().