• Post Reply Bookmark Topic Watch Topic
  • New Topic

System.out  RSS feed

 
aryan sahu
Greenhorn
Posts: 11
Chrome Java Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can anyone explain how the printstream object (out) in the System class is initialized.
Inside System class the following code is available..



I am not able to understand with what object the refernce out is initialized so that it points to the standard output device. / how does it gets refrence to output device?

 
Matthew Brown
Bartender
Posts: 4568
9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It's done in native code. If you look elsewhere in the source code for System, you'll see the following:
and later:
Which means that's implemented in native code.


 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!