jQuery in Action, 3rd edition
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

Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "how it is possible" Watch "how it is possible" New topic

how it is possible

kotha vijaybabu
Ranch Hand

Joined: Jan 28, 2006
Posts: 77
hi all

in general Java programs we are writing


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

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?

I agree. Here's the link: http://aspose.com/file-tools
subject: how it is possible
It's not a secret anymore!