in most code examples, I see people doing this.
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
If I'm right, when we talk about importing java.awt. * It imports everything inside it, so it is not necessary to specify the import java.awt.event. *; or is there a speed improvement? can someone explain what imports the library, imports a simple text class to include in the source, or tells jvm to include the bytecode of what is imported? so importing into java means nothing but switching the namespace, so I don't need to enter long class names?
source
share