• Post Reply Bookmark Topic Watch Topic
  • New Topic

out member  RSS feed

 
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


out in System class

System.out.println();

is it data or object of System Class
if data how does it call println() method of System Class
 
Rancher
Posts: 42972
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"out" is a field of the System class; the javadocs of that class will tell you its type.

println() method of System Class

The System class has no println method.
 
Bartender
Posts: 3185
34
Google App Engine Java Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
And from the source of System class: out is declared as follows:
 
Marshal
Posts: 56610
172
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
And welcome to the Ranch
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!