Click here to Skip to main content
15,914,500 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
please tell me the full detailed information
Posted

1 solution

Hi,

If you use
Java
import java.sql.*;

then you import ALL classes in the package java.sql.
If you use
Java
import java.sql.Connection;

Then only the Connection class in the package java.sql will be imported.

Read more about the import keyword here:
http://www.roseindia.net/help/java/i/import-keyword.shtml[^]

Hope this helps.
 
Share this answer
 
Comments
H.Brydon 9-Feb-13 14:45pm    
Perfect answer. +5
Thomas Daniels 10-Feb-13 4:31am    
Thank you!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900