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

前端 未结 5 1928
野的像风
野的像风 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:57

    The only way you wouldn't see System.out output in the console is if the method System.setOut has been invoked. This method is invoked to redirect output to the graphical Java Console, but I don't know of any other realistic circumstance in which it would be redirected away from the Java Console unless you do so voluntarily.

提交回复
热议问题