I tried to decompile the JDK osurce code to figure out how exactly does the function call System.out.println() communicate with the console and produce output on the screen. However, in the decompiled code, I only saw normal JVM instructions. Nothing special which would have hinted that the actual printing is taking place.
Could any one please explain how does the JVM manage to produce output on the screen?? Does this have something to do with JNI native methods??