update Java 基础.md
This commit is contained in:
parent
cc82b238c0
commit
f01ae3dbb2
|
@ -763,10 +763,10 @@ try {
|
||||||
```
|
```
|
||||||
|
|
||||||
```html
|
```html
|
||||||
java.lang.CloneNotSupportedException: CloneTest
|
java.lang.CloneNotSupportedException: CloneExample
|
||||||
```
|
```
|
||||||
|
|
||||||
以上抛出了 CloneNotSupportedException,这是因为 CloneTest 没有实现 Cloneable 接口。
|
以上抛出了 CloneNotSupportedException,这是因为 CloneExample 没有实现 Cloneable 接口。
|
||||||
|
|
||||||
```java
|
```java
|
||||||
public class CloneExample implements Cloneable {
|
public class CloneExample implements Cloneable {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user