• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

I want clear explanation,Plz explain

 
Anil Pattnaik
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 9295
10
Linux Mac OS X Windows
 
Joanne Neal
Rancher
Posts: 3742
16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Other answers given in this multiple post
 
hyungi dibble
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You don't need to do the import because code
for the System class already do the import.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic