Search:

Type: Posts; User: andbin

Search: Search took 0.10 seconds.

  1. Replies
    14
    Views
    1,305

    Re: Please solve my problem

    Yes, the output is different but it doesn't depend on the intrinsic differences between a char[] and a int[].

    System.out.println(cr); invokes the println(char[]) of java.io.PrintStream. This...
  2. Replies
    14
    Views
    1,305

    Re: Please solve my problem

    Arrays are implemented internally in the JVM, you can't extend or override anything about arrays.
    Arrays derive from java.lang.Object but they don't override (redefine) the toString() method. So...
  3. Replies
    14
    Views
    1,305

    Re: Please solve my problem

    Prints 3 null (0 value) characters. The println choosen by compiler is the println(char[] x) that correctly prints each character in the array, then a newline. Default value in char array elements is...
Results 1 to 3 of 3