当前位置:网站首页>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
·
边栏推荐
- Interview script of Software Test Engineer
- Report on prospects and future investment recommendations of China's assisted reproductive industry, 2022-2028 Edition
- Research Report on the scale prediction of China's municipal engineering industry and the prospect of the 14th five year plan 2022-2028
- Similarities and differences of text similarity between Jaccard and cosine
- Selenium library 4.5.0 keyword explanation (III)
- What is regression testing? Talk about regression testing in the eyes of Ali Test Engineers
- Qtcharts notes (V) scatter diagram qscatterseries
- Reading notes on how programs run
- It is worthy of "Alibaba internal software test interview notes" from beginning to end, all of which are essence
- Att & CK actual combat series - red team actual combat - V
猜你喜欢

Qtcharts notes (V) scatter diagram qscatterseries

Data mining vs Machine Learning: what is the difference between them? Which is more suitable for you to learn

Ningde times and BYD have refuted rumors one after another. Why does someone always want to harm domestic brands?

Vscode regular match replace console log(.*)

(Video + graphics and text) introduction to machine learning series - Chapter 4 naive Bayes

Eight year test old bird, some suggestions for 1-3 year programmers

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

Entropy and full connection layer

Bodong medical sprint Hong Kong stocks: a 9-month loss of 200million Hillhouse and Philips are shareholders

Analysis: misunderstanding of choosing WMS warehouse management system
随机推荐
Generic tips
Pytest unit test framework: simple and easy to use parameterization and multiple operation modes
What is the potential of pocket network, which is favored by well-known investors?
Att & CK actual combat series - red team actual combat - V
Gossip about redis source code 77
What does redis do? Redis often practices grammar every day
Introducing Software Testing
【leetcode】300. Longest increasing subsequence (dynamic programming, dichotomy)
Collation of the most complete Chinese naturallanguageprocessing data sets, platforms and tools
Vscode regular match replace console log(.*)
How to make recv have a little temper?
What is regression testing? Talk about regression testing in the eyes of Ali Test Engineers
What are the application fields of digital twins in industry?
P1629 postman delivering letter
Speed up the energy Internet of things. What can low-power Internet of things technology represented by Zeta do?
No qualifying bean of type ‘com. netflix. discovery. AbstractDiscoveryClientOptionalArgs<?>‘ available
Gossip about redis source code 83
How to trade spot gold safely?
Suggestions for improving code quality
[GNN] hard core! This paper combs the classical graph network model