2016年8月13日

java PreparedStatement和statement的区别

摘要: 1、 PreparedStatement接口继承Statement, PreparedStatement 实例包含已编译的 SQL 语句,所以其执行速度要快于 Statement 对象。2、作为 Statement 的子类,PreparedStatement 继承了 Statement 的所有功能。 阅读全文

posted @ 2016-08-13 16:37 freshman2014 阅读(227) 评论(0) 推荐(0)

HashMap的工作原理

摘要: 前言 首先再次强调hashcode (==)和equals的真正含义(我记得以前有人会说,equals是判断对象内容,hashcode是判断是否相等之类): equals:是否同一个对象实例。注意,是“实例”。比如String s = new String("test"); s.equals(s), 阅读全文

posted @ 2016-08-13 10:35 freshman2014 阅读(176) 评论(0) 推荐(0)

导航