Can we use a wildcard import statement if we are using all the classes in a particular package?
For example, I am importing ALL the exception classes I have created into my parser class, so it would be better for me to do this:
import duke.exception.*;
instead of
You still need to import the classes explicitly. It gives an idea of what all are in play in this particular class (as against using *, where you don't know explicitly what is present)
Can we use a wildcard import statement if we are using all the classes in a particular package?
For example, I am importing ALL the exception classes I have created into my parser class, so it would be better for me to do this:
import duke.exception.*;
instead of