It's not a secret anymore!*
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes import statement Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "import statement" Watch "import statement" New topic
Author

import statement

chetan dhumane
Ranch Hand

Joined: Jan 07, 2009
Posts: 629

Hello all ,



Can we use static keyword with import statement.

Thanks


http://www.androcid.com/
Balaji Bang
Ranch Hand

Joined: Apr 23, 2007
Posts: 180
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

Joined: Aug 16, 2005
Posts: 14074
    
  16

Here's an explanation of static import. This one of the new language features of Java 5.


Java Beginners FAQ - JavaRanch SCJP FAQ - The Java Tutorial - Java SE 7 API documentation
Scala Notes - My blog about Scala
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: import statement
 
Similar Threads
import packages?
HTTP method POST is not supported by this url
Overloaded vs Overriden
java.lang.IllegalStateException: Cannot forward after response has been committed
converting a string into a date