Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how it is possible

 
kotha vijaybabu
Ranch Hand
Posts: 77
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi all

in general Java programs we are writing

System.out.println()

println() is the method of PrintStream class which resided in java.io

but we are not importing java.io

how it is working


plz help me
 
David O'Meara
Rancher
Posts: 13459
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You are not directly using java.io, so why would you need to include it? If you run your code using -verbose:class you will see all of the classes as they get loaded. According to your question, if you needed to include everything used by anything else you reference, everything in the code base would have to include everything else.

Instead we allow ourselves to refer to the things we need directly, and allow them to include the parts they require.

I'd like to finish with three questions:
1) is this a serious question?
2) how is it advanced?
3) why do you include ' ' in you posts?

Dave
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic