GeeCON Prague 2014*
The moose likes Java in General and the fly likes I want clear explanation,Plz explain Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Java in General
Bookmark "I want clear explanation,Plz explain" Watch "I want clear explanation,Plz explain" New topic
Author

I want clear explanation,Plz explain

Anil Pattnaik
Greenhorn

Joined: Jun 15, 2006
Posts: 8
I want to know the purpose of "System.out.println("some String")".
System class comes under java.lang package.But println(" ...") method is a method of PrintStream class which belongs to java.io package.So,even if we donot import java.io package how does that work?
Joe Ess
Bartender

Joined: Oct 29, 2001
Posts: 8915
    
    8

Javaworld: The ins and outs of Standard Output


"blabbing like a narcissistic fool with a superiority complex" ~ N.A.
[How To Ask Questions On JavaRanch]
Joanne Neal
Rancher

Joined: Aug 05, 2005
Posts: 3606
    
  15
Other answers given in this multiple post


Joanne
hyungi dibble
Ranch Hand

Joined: May 29, 2006
Posts: 42
You don't need to do the import because code
for the System class already do the import.
 
Don't get me started about those stupid light bulbs.
 
subject: I want clear explanation,Plz explain