当前位置:网站首页>On covariance of array and wildcard of generic type
On covariance of array and wildcard of generic type
2022-07-04 00:28:00 【Xiaobai's world】
1. What is covariance of array ?


In the picture above , One integer Array objects are treated as number Array objects . That is, subclass objects can be regarded as parent objects , It's called covariance . So he can also add Double Object of type .
2. What is a wildcard ?
? That is, uncertain java type
When the operation type , When you don't need to use type specific functions , Use only Object Function in class . Then you can use it ? Wildcards to table unknown types
① Upper bound wildcard

## ② Lower bound wildcard
·
边栏推荐
- Gossip about redis source code 83
- Qtcharts notes (V) scatter diagram qscatterseries
- Generic
- 8. Go implementation of string conversion integer (ATOI) and leetcode
- Shell script three swordsman sed
- How will the complete NFT platform work in 2022? How about its core functions and online time?
- Alibaba test engineer with an annual salary of 500000 shares notes: a complete set of written tests of software testing
- Pair
- 2020.2.14
- Pytorch learning notes 5: model creation
猜你喜欢

MySQL 8.0.12 error: error 2013 (HY000): lost connection to MySQL server during query

Recommendation of knowledge base management system

It is worthy of "Alibaba internal software test interview notes" from beginning to end, all of which are essence

Investment demand and income forecast report of China's building ceramics industry, 2022-2028

STM32 GPIO CSDN creative punch in

What is the potential of pocket network, which is favored by well-known investors?

2022 system integration project management engineer examination knowledge points: software development model
![[PHP basics] session basic knowledge, application case code and attack and defense](/img/f5/713d7044a693ef23e3fbb1ff9bc9f4.jpg)
[PHP basics] session basic knowledge, application case code and attack and defense

Kubedl hostnetwork: accelerating the efficiency of distributed training communication

Report on prospects and future investment recommendations of China's assisted reproductive industry, 2022-2028 Edition
随机推荐
Kubedl hostnetwork: accelerating the efficiency of distributed training communication
[about text classification trick] things you don't know
Advanced C language - pointer 2 - knowledge points sorting
Distributed transaction -- middleware of TCC -- selection / comparison
Gossip about redis source code 82
Subgraph isomorphism -subgraph isomorphism
Tencent interview: can you pour water?
Ningde times and BYD have refuted rumors one after another. Why does someone always want to harm domestic brands?
Kubedl hostnetwork: accelerating the efficiency of distributed training communication
Joint examination of six provinces 2017
Selenium library 4.5.0 keyword explanation (II)
Anomalies seen during the interview
What is the GPM scheduler for go?
Why use get/set instead of exposing properties
Interview script of Software Test Engineer
Qtcharts notes (V) scatter diagram qscatterseries
How to make recv have a little temper?
Severity code description the project file line prohibits the display of status error c4996 fopen ('fscanf ', StrCmp): this function or variable may be unsafe The most comprehensive solution
[cloud native topic -48]:kubesphere cloud Governance - operation - overview of multi tenant concept
P3371 [template] single source shortest path (weakened version)