• Post Reply Bookmark Topic Watch Topic
  • New Topic

Head First Java page 371  RSS feed

 
chaitanya ashtekar
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hello newbie here.
what does * mean in

and how does it differ from

please give a detailed explanation on the difference between these two lines of the program.they have been both included in the same program.
 
Darryl Burke
Bartender
Posts: 5167
11
Java Netbeans IDE Opera
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Read all about it here: Import Declarations.
 
Campbell Ritchie
Marshal
Posts: 56518
172
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The first tells the compiler,
If you can't find a class, look in the java.awt package but not its subpackages.
The second means,
If you can't find a class, look in the java.awt.event package but not its subpackages.
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!