The Java implementation is able to differentiate between stdout and stderr, as can be seen with the following small code snippet:
System.out.println("stdout");
System.err.println("stderr");
When run in a Notebook, the stderr output is colored red: