File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Customer Requirements for Developers
this week in the
Programmer Certification (SCJP/OCPJP)
Joined: Jan 07, 2009
Feb 18, 2009 00:14:14
Hello all ,
Can we use static keyword with import statement.
Moody blogger who do not like to behave like target setting machines work.
Joined: Apr 23, 2007
Feb 18, 2009 00:17:49
Yes Chetan ,We can use static with import. That becomes a static import ,
But the order will be
import static java.util.Collections.*
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
Joined: Aug 16, 2005
Feb 18, 2009 01:02:12
explanation of static import
. This one of the new language features of
Java Beginners FAQ
JavaRanch SCJP FAQ
The Java Tutorial
Java SE 8 API documentation
I agree. Here's the link:
subject: import statement
HTTP method POST is not supported by this url
converting a string into a date
Overloaded vs Overriden
java.lang.IllegalStateException: Cannot forward after response has been committed
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015