The output for following print statement is same, is there any internal difference which is safe as per Privacy Violation: Heap Inspection
char[] ch ={'p','a','s','s','w','o','r','d'};
System.out.println(String.valueOf(ch));
System.out.println(new String(ch));