File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -536,7 +536,7 @@ while (true) {
536
536
``` java
537
537
do {
538
538
// 循环体
539
- }while (提交 );
539
+ }while (条件 );
540
540
```
541
541
542
542
画个流程图:
Original file line number Diff line number Diff line change @@ -525,7 +525,7 @@ interface Coach {
525
525
526
526
#### 1)语法层面上
527
527
528
- - 抽象类可以提供成员方法的实现细节,而接口中只能存在 public abstract 方法;
528
+ - 抽象类可以包含具体方法的实现;而在接口中,方法默认是 public abstract 的,但从 Java 8 开始,接口也可以包含有实现的默认方法和静态方法。
529
529
- 抽象类中的成员变量可以是各种类型的,而接口中的成员变量只能是 public static final 类型的;
530
530
- 接口中不能含有静态代码块,而抽象类可以有静态代码块;
531
531
- 一个类只能继承一个抽象类,而一个类却可以实现多个接口。
Original file line number Diff line number Diff line change @@ -214,7 +214,7 @@ MySQL 中的 in 语句是把外表和内表作 hash 连接,而 exists 语句
214
214
215
215
### 8.MySQL 里记录货币用什么字段类型比较好?
216
216
217
- 货币在数据库中 MySQL 常用 Decimal 和 Numric 类型表示,这两种类型被 MySQL 实现为同样的类型。他们被用于保存与货币有关的数据。
217
+ 货币在数据库中 MySQL 常用 Decimal 和 Numeric 类型表示,这两种类型被 MySQL 实现为同样的类型。他们被用于保存与货币有关的数据。
218
218
219
219
例如 salary DECIMAL(9,2),9(precision)代表将被用于存储值的总的小数位数,而 2(scale)代表将被用于存储小数点后的位数。存储在 salary 列中的值的范围是从-9999999.99 到 9999999.99。
220
220
You can’t perform that action at this time.
0 commit comments