wood burning stoves*
The moose likes Java in General and the fly likes how it is possible Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "how it is possible" Watch "how it is possible" New topic
Author

how it is possible

kotha vijaybabu
Ranch Hand

Joined: Jan 28, 2006
Posts: 77
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

Joined: Mar 06, 2001
Posts: 13459

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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how it is possible