importing packages - Programmers Heaven

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

importing packages

link2rajlink2raj Posts: 9Member
what is difference between:
import java.awt.event.*;
and
import java.awt.event;

Comments

  • pahpah Posts: 83Member
    : what is difference between:
    : import java.awt.event.*;
    [blue] here you import all classes under this package named[/blue] [red]event[/red]
    : and
    : import java.awt.event;
    [blue] and here you want to import a package name but the name is not a class so you cant import a package name[/blue]
    :
    :

Sign In or Register to comment.