importing packages??

  • Thread starter raj_indian_sikh
  • Start date
R

raj_indian_sikh

what is difference between:
import java.awt.event.*;
and
import java.awt.event;
 
P

Paul Hamaker

import java.awt.event.*;
So all classes in the java.awt.event package can be found (in rt.jar)
and their short names can be used in the source.

import java.awt.event;
is not possible, but maybe you mean something like
import java.awt.event.MouseEvent;
so MouseEvent's full name is known and it can be found in rt.jar .

The above applies to interfaces as well, not just to classes.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,431
Messages
2,571,677
Members
48,796
Latest member
Greg L.

Latest Threads

Top