![](https://img-blog.csdnimg.cn/20201014180756757.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
学习思考
努力编写代码的孙孙
这个作者很懒,什么都没留下…
展开
-
JDBC连接数据库时为什么要判断是否为null?
一、项目实例Connection conn = null;Statement stmt = null;try { ... } catch (Exception e) { e.printStackTrace(); }finally { //6、关闭资源,倒序关闭 if(stmt !=null) { stmt.close(); } ...转载 2019-10-12 20:17:09 · 1164 阅读 · 0 评论 -
JAVA学习----面向对象存储(基础)
到底我们程序运行时,内存分配是怎样的呢,首先来看一组简单代码一·编写Person类public class Person {String name;int age;public void show(){System.out.println(“姓名:”+name+",年龄:"+age);}}二·创建Person类对象并使用public class TestPerson {pu...原创 2019-08-28 11:10:02 · 234 阅读 · 0 评论 -
Java学习——面向对象思维导图(简单总结)
原创 2019-08-31 15:40:31 · 1070 阅读 · 0 评论