• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how does System.out.println() works

 
sapana jain
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
from many days i was just thinking that how does the System.out.println() works in java.I refer many books but not getting the right explanation.
 
Jesper de Jong
Java Cowboy
Saloon Keeper
Posts: 15481
43
Android IntelliJ IDE Java Scala Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
'System' is a class (in the package java.lang) that has a member variable called 'out'. The type of 'out' is java.io.PrintStream, as you can see in the API documentation. The method 'println(...)' is a method of class PrintStream.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic