• Post Reply Bookmark Topic Watch Topic
  • New Topic

what does this mean??

 
mansi gupte
Ranch Hand
Posts: 72
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
PrintStream o = System.out;
 
arulk pillai
Author
Ranch Hand
Posts: 3404
 
Henry Wong
author
Sheriff
Posts: 22641
111
C++ Chrome Eclipse IDE Firefox Browser Java jQuery Linux VI Editor Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
piya rai wrote: PrintStream o = System.out;



You are declaring a reference, called "o", which is of type PrintStream, and assigning it the System.out reference. This works because "out" is of type PrintStream, and is a static variable of the System class.

Henry
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!