java import java.sql。*和java.sql.Connection有什么区别 [英] java what is the difference between import java.sql.* and java.sql.Connection

查看:922
本文介绍了java import java.sql。*和java.sql.Connection有什么区别的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

请告诉我完整的详细信息

please tell me the full detailed information

推荐答案





如果你使用

Hi,

If you use
import java.sql.*;



然后你导入包中的所有类 java.sql

如果你使用


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

import java.sql.Connection;



然后只有连接 java.sql 将被导入。



了解更多关于 import 这里的关键字:

http://www.roseindia.net/help/java/i/import-keyword.shtml [ ^ ]



希望这会有所帮助。


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.


这篇关于java import java.sql。*和java.sql.Connection有什么区别的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆