mirror of
https://github.com/CyC2018/CS-Notes.git
synced 2025-07-10 13:37:35 +08:00
update Java 基础.md
This commit is contained in:
@ -763,10 +763,10 @@ try {
|
||||
```
|
||||
|
||||
```html
|
||||
java.lang.CloneNotSupportedException: CloneTest
|
||||
java.lang.CloneNotSupportedException: CloneExample
|
||||
```
|
||||
|
||||
以上抛出了 CloneNotSupportedException,这是因为 CloneTest 没有实现 Cloneable 接口。
|
||||
以上抛出了 CloneNotSupportedException,这是因为 CloneExample 没有实现 Cloneable 接口。
|
||||
|
||||
```java
|
||||
public class CloneExample implements Cloneable {
|
||||
|
Reference in New Issue
Block a user