File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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

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

but we are not importing

how it is working

plz help me
David O'Meara

Joined: Mar 06, 2001
Posts: 13459

You are not directly using, 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:
subject: how it is possible
It's not a secret anymore!