Is importing of the package java.awt, recorded in the program as follows:
import java.awt.*;
sufficient to use classes in the package java.awt.event (without naming the package)?
Explanation
The symbol * when importing packages means only possibility to use classes declared in it that does not belong to the class scope of its sub-packages.

Follow CodeGalaxy

Mobile Beta

Get it on Google Play
Send Feedback