Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

differences between .* import and class import

807589Jun 20 2008 — edited Jun 23 2008
Hi All,

I want a clarification on import statements. Some one please clarify me whether there will be an impact on JVM at compile time or run time if we use .* in import statements

For eg: import java.sql.*;

or is it a better way to import only those classes which are necessary at run or compile time

For eg: import java.sql.PreparedStatement;

Please clarify me.


Thanks in advance
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 21 2008
Added on Jun 20 2008
20 comments
919 views