When does System.out not appear in the Java console?

前端 未结 5 1887
野的像风
野的像风 2021-01-24 16:47

I understood that anything to standard out (System.out) would appear in the Java Console window (when it\'s enabled). I spotted somewhere though that there might be

5条回答
  •  广开言路
    2021-01-24 16:53

    One situation I can think of is to invoke System.setOut(null) (orSystem.setOut(any OutputStream other than System.out or System.err)) then the console, if exists, would show nothing.

提交回复
热议问题