Character limit for System.out.println() in Java

后端 未结 6 1504
花落未央
花落未央 2020-12-07 02:01

Is there any character limit for the output of Java\'s System.out.println(String x) statement?

When I try to print some XML from a web service call usin

6条回答
  •  [愿得一人]
    2020-12-07 02:37

    You're limited by the maximum size of a Java String. That's all. This should be the equivalent of length Integer.MAX_VALUE (2147483647), which is the max size of an array, since a String is a char array.

    Otherwise, it's the Eclipse console capacity limit, as others have said.

提交回复
热议问题