当前位置:网站首页>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
·
边栏推荐
- ITK learning notes (VII) the position of ITK rotation direction remains unchanged
- Ningde times and BYD have refuted rumors one after another. Why does someone always want to harm domestic brands?
- 【leetcode】300. Longest increasing subsequence (dynamic programming, dichotomy)
- It is the most difficult to teach AI to play iron fist frame by frame. Now arcade game lovers have something
- [2021]NeRF in the Wild: Neural Radiance Fields for Unconstrained Photo Collections
- system. Exit (0) and system exit(1)
- Report on prospects and future investment recommendations of China's assisted reproductive industry, 2022-2028 Edition
- Gossip about redis source code 81
- 想请教一下,十大劵商如何开户?在线开户是安全么?
- 2020.2.14
猜你喜欢
![[cloud native topic -48]:kubesphere cloud Governance - operation - overview of multi tenant concept](/img/b4/961b3b44e9ecbfd4bddd04318b663a.jpg)
[cloud native topic -48]:kubesphere cloud Governance - operation - overview of multi tenant concept

Sorry, Tencent I also refused

What is regression testing? Talk about regression testing in the eyes of Ali Test Engineers

Makefile judge custom variables

MySQL is installed as a Windows Service

Solve the problem that the kaggle account registration does not display the verification code

Iclr2022: how does AI recognize "things I haven't seen"?

On the day when 28K joined Huawei testing post, I cried: everything I have done in these five months is worth it

Software testers, how can you quickly improve your testing skills? Ten minutes to teach you

Ningde times and BYD have refuted rumors one after another. Why does someone always want to harm domestic brands?
随机推荐
Att & CK actual combat series - red team actual combat - V
Briefly understand the operation mode of developing NFT platform
AI Challenger 2018 text mining competition related solutions and code summary
No qualifying bean of type ‘com. netflix. discovery. AbstractDiscoveryClientOptionalArgs<?>‘ available
What does redis do? Redis often practices grammar every day
8. Go implementation of string conversion integer (ATOI) and leetcode
Global and Chinese market of melting furnaces 2022-2028: Research Report on technology, participants, trends, market size and share
Introduction to thread pool
Docking Alipay process [pay in person, QR code Payment]
Idea set class header comments
[NLP] text classification still stays at Bert? Duality is too strong than learning framework
Investment demand and income forecast report of China's building ceramics industry, 2022-2028
【leetcode】374. Guess the size of the number
[leetcode] interview question 17.08 Circus tower
After the Lunar New Year and a half
Social network analysis -social network analysis
Kubedl hostnetwork: accelerating the efficiency of distributed training communication
Selenium library 4.5.0 keyword explanation (I)
Several ways to set up a blog locally [attach relevant software download links]
Data mining vs Machine Learning: what is the difference between them? Which is more suitable for you to learn