Java开发网 Java开发网
注册 | 登录 | 帮助 | 搜索 | 排行榜 | 发帖统计  

您没有登录

» Java开发网 » Java SE 综合讨论区  

按打印兼容模式打印这个话题 打印话题    把这个话题寄给朋友 寄给朋友    该主题的所有更新都将Email到你的邮箱 订阅主题
flat modethreaded modego to previous topicgo to next topicgo to back
作者 请教是什么错误?? (does not define method prepareStatement(String, String[]))
sc33



版主


发贴: 128
积分: 30
于 2003-04-25 17:35 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
"conn.java": Error #: 454 : class sys.Conn should be declared abstract; it does not define method prepareStatement(java.lang.String, java.lang.String[]) in interface java.sql.Connection at line 10, column 8

why edited on 2003-06-22 00:07

作者 Re:请教是什么错误?? [Re:sc33]
Biubiu

Pure Java

总版主


发贴: 471
积分: 50
于 2003-04-25 18:00 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
sc33 wrote:
"conn.java": Error #: 454 : class sys.Conn should be declared abstract; it does not define method prepareStatement(java.lang.String, java.lang.String[]) in interface java.sql.Connection at line 10, column 8


学Java之前我们得先学英文哦。



In theory, there is no difference between theory and practice; in practice, however, there is.

If the only tool you have is a hammer, you tend to see every problem as a nail.
作者 Re:请教是什么错误?? [Re:sc33]
jiangns3000



发贴: 0
积分: 0
于 2003-04-25 18:21 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
你应该帖一下代码,才能更准确。
该信息使人猜测,类sys.Conn实现了java.sql.Connection接口但却没有给其中方法 prepareStatement(java.lang.String, java.lang.String[])给出代码,故要求该必须定义为abstract。
以上仅是猜测。没有代码只能猜。




作者 Re:请教是什么错误?? [Re:sc33]
snowbug



CJSDN高级会员


发贴: 418
积分: 130
于 2003-04-25 23:02 user profilesend a private message to usersend email to snowbugsearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
Looks like you are writing an implementation class for the JDBC Connection interface under JDK 1.4.

The method: prepareStatement(java.lang.String, java.lang.String[]) is introduced in JDK 1.4. Many JDBC drivers may not have that method implemented yet. However, you should be able to use those drivers without any problem as long as you dont invoke that method. But if you are compiling the JDBC classes, you will need to make sure this method is implemented.




flat modethreaded modego to previous topicgo to next topicgo to back
  已读帖子
  新的帖子
  被删除的帖子
Jump to the top of page

   Powered by Jute Powerful Forum® Version Jute 1.5.6 Ent
Copyright © 2002-2021 Cjsdn Team. All Righits Reserved. 闽ICP备05005120号-1
客服电话 18559299278    客服信箱 714923@qq.com    客服QQ 714923