The Artima Developer Community
Sponsored Link

Legacy Java Answers Forum
November 2000

Advertisement

Advertisement

This page contains an archived post to the Java Answers Forum made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.

Message:

Sounds to me like the ...

Posted by Raji on November 24, 2000 at 9:11 AM

2nd import statement is redundant. import java.awt.* should be sufficient.

As a code convenetion though, several people recommend specifying exactly what is being import rather than use wildcard characters.

Raji
> Hi,all

> Is there any can answer the simple question for me?

> What's difference for the follow? I read some of the program written by java. from the import part, like:

> import java.awt.*;
> import java.awt.event.*;

> why cannot use just one:
> import java.awt.*
> to instead of above two sentence?






Replies:

Sponsored Links



Google
  Web Artima.com   
Copyright © 1996-2009 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use - Advertise with Us