mirror of
https://github.com/youthlql/JavaYouth.git
synced 2026-03-13 21:33:42 +08:00
更新所有文章的图床,旧图床由于一些原因可能会逐渐失效
This commit is contained in:
@@ -9,7 +9,7 @@ categories:
|
||||
- 重难点
|
||||
keywords: Java基础,泛型
|
||||
description: 万字长文详解Java泛型。
|
||||
cover: 'https://unpkg.zhimg.com/youthlql@1.0.8/Java_Basis/logo.png'
|
||||
cover: 'https://gitee.com/youthlql/randombg/raw/master/logo/java.png'
|
||||
abbrlink: adb2faf0
|
||||
date: 2020-10-19 22:21:58
|
||||
---
|
||||
@@ -1038,7 +1038,7 @@ class Dog extends Animal {
|
||||
|
||||
`test1()`在编译时就会飘红
|
||||
|
||||
<img src="https://unpkg.zhimg.com/youthlql@1.0.8/Java_Basis/Generic/0001.png">
|
||||
<img src="https://img.imlql.cn/youthlql@1.0.8/Java_Basis/Generic/0001.png">
|
||||
|
||||
|
||||
|
||||
@@ -1290,7 +1290,7 @@ public class Test_difference {
|
||||
}
|
||||
```
|
||||
|
||||
<img src="https://unpkg.zhimg.com/youthlql@1.0.8/Java_Basis/Generic/0002.png">
|
||||
<img src="https://img.imlql.cn/youthlql@1.0.8/Java_Basis/Generic/0002.png">
|
||||
|
||||
### 区别3:?通配符可以使用超类限定而T不行
|
||||
|
||||
|
||||
Reference in New Issue
Block a user