+ 1
What does the following Java program print?
public class Test { public static void main(String[] args) throws Exception { char[] chars = new char[] {'\u0097'}; String str = new String(chars); byte[] bytes = str.getBytes(); System.out.println(Arrays.toString(bytes)); } }
4 Respuestas
+ 1
[63]
0
Nothing
0
do i need a computer to find out?
0
on windows,it prints 63 but on Linux and Solaris u will get different values.