my dog learned polymorphism
The moose likes Beginning Java and the fly likes what does this  mean?? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of OCA Java SE 8 Programmer I Study Guide 1Z0-808 this week in the OCAJP forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "what does this  mean??" Watch "what does this  mean??" New topic

what does this mean??

mansi gupte
Ranch Hand

Joined: Dec 30, 2008
Posts: 72
PrintStream o = System.out;
arulk pillai
Ranch Hand

Joined: May 31, 2007
Posts: 3281
Check this

500+ Java Interview Questions and Answers | Java job hunting know how & Java resumes
Henry Wong

Joined: Sep 28, 2004
Posts: 19235

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.


Books: Java Threads, 3rd Edition, Jini in a Nutshell, and Java Gems (contributor)
I agree. Here's the link:
subject: what does this mean??