Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

import statement

 
chetan dhumane
Ranch Hand
Posts: 641
Android Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello all ,



Can we use static keyword with import statement.

Thanks
 
Balaji Bang
Ranch Hand
Posts: 182
Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes Chetan ,We can use static with import. That becomes a static import ,
But the order will be
We use static imports to import static methods in a class.
Read 10th chapter in K&B book. You will understand more...
 
Jesper de Jong
Java Cowboy
Saloon Keeper
Posts: 15356
39
Android IntelliJ IDE Java Scala Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Here's an explanation of static import. This one of the new language features of Java 5.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic