Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • 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: 3385
 
Henry Wong
author
Marshal
Pie
Posts: 20880
75
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