mirror of
https://github.com/youthlql/JavaYouth.git
synced 2026-03-13 21:33:42 +08:00
jsd cdn 大陆节点逐步被国内封禁,现更换图床
This commit is contained in:
@@ -9,7 +9,7 @@ categories:
|
||||
- 重难点
|
||||
keywords: Java基础,泛型
|
||||
description: 万字长文详解Java泛型。
|
||||
cover: 'https://cdn.jsdelivr.net/gh/youthlql/lqlp@v1.0.0/Java_Basis/logo.png'
|
||||
cover: 'https://unpkg.zhimg.com/youthlql@1.0.8/Java_Basis/logo.png'
|
||||
abbrlink: adb2faf0
|
||||
date: 2020-10-19 22:21:58
|
||||
---
|
||||
@@ -1038,7 +1038,7 @@ class Dog extends Animal {
|
||||
|
||||
`test1()`在编译时就会飘红
|
||||
|
||||
<img src="https://cdn.jsdelivr.net/gh/youthlql/lqlp@v1.0.0/Java_Basis/Generic/0001.png">
|
||||
<img src="https://unpkg.zhimg.com/youthlql@1.0.8/Java_Basis/Generic/0001.png">
|
||||
|
||||
|
||||
|
||||
@@ -1290,7 +1290,7 @@ public class Test_difference {
|
||||
}
|
||||
```
|
||||
|
||||
<img src="https://cdn.jsdelivr.net/gh/youthlql/lqlp@v1.0.0/Java_Basis/Generic/0002.png">
|
||||
<img src="https://unpkg.zhimg.com/youthlql@1.0.8/Java_Basis/Generic/0002.png">
|
||||
|
||||
### 区别3:?通配符可以使用超类限定而T不行
|
||||
|
||||
|
||||
Reference in New Issue
Block a user