PoeticalJustice

导航

上一页 1 ··· 8 9 10 11 12 13 14 下一页

2017年10月1日 #

final

摘要: final修饰方法和类 阅读全文

posted @ 2017-10-01 15:15 PoeticalJustice 阅读(151) 评论(0) 推荐(0) 编辑

面向对象三大特性一一继承(inheritance)和组合(Composition)

摘要: 记住2句话(常识),像个正常人思考! 1.“ is-a ”关系 用 继承! 学生是人,学生继承人这个类, 2. “has-a ”关系 用 组合!电脑有显卡,那么我们就在计算机类中增加显卡属性来复用显卡类的代码。 使用继承的代码 main方法 控制台 使用组合的代码 控制台 类继承和对象组合的优缺点 阅读全文

posted @ 2017-10-01 01:03 PoeticalJustice 阅读(1174) 评论(0) 推荐(0) 编辑

2017年9月29日 #

JDBC之使用配置文件链接数据库

摘要: 写在前面 JDBC以一种统一的方式来对各种各样的数据库进行存取,JDBC为开发人员隐藏了不同数据库的不同特性。程序员开发时,知道要开发访问数据库的应用,于是将一个对应数据库的JDBC驱动程序类的引用进行了编码,并通过使用适当的JDBC URL 连接到数据库。 首先保证oracle服务开启,至于怎么开 阅读全文

posted @ 2017-09-29 17:18 PoeticalJustice 阅读(1066) 评论(0) 推荐(0) 编辑

程序内存分析1

摘要: 先建一个Student类 写一个main方法 控制台打印 画图 地址瞎写的,就那么个意思。 阅读全文

posted @ 2017-09-29 15:53 PoeticalJustice 阅读(121) 评论(0) 推荐(0) 编辑

super关键字

摘要: 写在前面 聊到super,一定会想到this,没错他们都是对象的引用,表示一个指向对象的地址。 他们是2个隐式参数,不用你传,本身就有。 每一个构造方法都具备这2个隐式参数 只不过指向的对象不同,super指向的父类对象的引用,this是对自身对象的引用。 说到这,一定要提一下构造器,又叫构造方法, 阅读全文

posted @ 2017-09-29 14:36 PoeticalJustice 阅读(162) 评论(0) 推荐(0) 编辑

如何高效学习?

摘要: 以下6条,刻意练习,每日精进。 1.管理好自己的多巴胺分泌水平 2.留意自己的学习状态 3.建立自己的外部大脑,减少认知负担。 4.激发自己的内心情感,找到持续学习的动力。 5.拆解和组合知识,学会传授给他人。 6.利用外部环境带动自己,减少认知的占用。 题外,这也是为什么要写博客的原因。 阅读全文

posted @ 2017-09-29 09:05 PoeticalJustice 阅读(112) 评论(0) 推荐(0) 编辑

2017年9月28日 #

break and continue

摘要: 1 public class TestBreakAndContinue { 2 3 /** 4 * 测试break and continue 5 */ 6 public static void main(String[] args) { 7 int total =0; 8 System.out.println(... 阅读全文

posted @ 2017-09-28 21:49 PoeticalJustice 阅读(123) 评论(0) 推荐(0) 编辑

debug

摘要: 以后再说 截图 阅读全文

posted @ 2017-09-28 21:48 PoeticalJustice 阅读(108) 评论(0) 推荐(0) 编辑

whlie and for

摘要: 1 public class TestWhileAndFor { 2 3 /**测试 while和for循环练习 4 * 100 以内的奇数和偶数的和 5 * @author Administrator 6 * 7 */ 8 public static void main(String[] args) { 9 ... 阅读全文

posted @ 2017-09-28 21:47 PoeticalJustice 阅读(132) 评论(0) 推荐(0) 编辑

while and for 2

摘要: 1 public class TestWhileAndFor2 { 2 3 /** 4 * 九九乘法表 5 * 1!+2!+3!+....+10!=? 6 * 7 */ 8 public static void main(String[] args) { 9 /* 10 for(int... 阅读全文

posted @ 2017-09-28 21:47 PoeticalJustice 阅读(121) 评论(0) 推荐(0) 编辑

上一页 1 ··· 8 9 10 11 12 13 14 下一页