Re: import magic
- From: Roedy Green <look-on@xxxxxxxxxxxxxxxxxxxx>
- Date: Tue, 05 Jul 2005 11:24:15 GMT
On Tue, 05 Jul 2005 11:38:24 +0100, Tim Miller <timbo@xxxxxxxxxxxxxxx>
wrote or quoted :
>Because you don't reference the identifier "Font" in the second
>statement. While instances of "Font" are still being used, the
>compiler can detect that x.getFont() returns an instance of
>java.awt.Font, and y.setFont(..) takes as a parameter
>java.awt.Font. The package name is already apparent from the
>method signatures, so you don't need to import them. In the first
>statement, however, "Font temp =.." could be referring to a class
>called "Font" from different packages.
Many thanks. that has been as itch I have never got around to
scratching since Java 1.0.
--
Bush crime family lost/embezzled $3 trillion from Pentagon.
Complicit Bush-friendly media keeps mum. Rumsfeld confesses on video.
http://www.infowars.com/articles/us/mckinney_grills_rumsfeld.htm
Canadian Mind Products, Roedy Green.
See http://mindprod.com/iraq.html photos of Bush's war crimes
.
- References:
- import magic
- From: Roedy Green
- Re: import magic
- From: Tim Miller
- import magic
- Prev by Date: Demoting and Promoting Serialised Objects
- Next by Date: What's the story with Java for 64-bit Windows?
- Previous by thread: Re: import magic
- Next by thread: Re: import magic
- Index(es):
Relevant Pages
|