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


JavaRanch » Java Forums » Java » Beginning Java
Bookmark "what does this  mean??" Watch "what does this  mean??" New topic
Author

what does this mean??

mansi gupte
Ranch Hand

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

Joined: May 31, 2007
Posts: 3359
Check this http://www.devx.com/tips/Tip/14660


[Java-Success.com] | [Java job hunting know how] | [Java resumes]
Henry Wong
author
Sheriff

Joined: Sep 28, 2004
Posts: 20026
    
  44

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


Books: Java Threads, 3rd Edition, Jini in a Nutshell, and Java Gems (contributor)
 
Have you checked out Aspose?
 
subject: what does this mean??
 
It's not a secret anymore!