-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Doug,
On 9/11/2011 12:24 PM, Donald Jolley wrote:
Thanks for the clarification.
Also note that it's generally frowned upon to import with
wildcards; be
specific with the classes you use.
Your suggestion certainly seems reasonable to me. I
From: Donald Jolley [mailto:jolleyt...@gmail.com]
Subject: Do imports inherit?
I was sort of thinking that if I imported those classes
into a parent class that would be sufficient for all the
children. Apparently it isn't.
Your final conclusion is correct - it's not sufficient
Thanks for the clarification.
Also note that it's generally frowned upon to import with wildcards; be
specific with the classes you use.
Your suggestion certainly seems reasonable to me. I do, however, note that
the use of wildcards seems to be fairly prolific. In this particular case
my use
I am writing a domain registration application.Typically, servlets
extend the HttpServlet class and import java.io.*, javax.servlet.*,
and javax.servlet.http.*. There are some methods and variables that I
want to make available to all of my servlets in this application. So,
I decided to create a