当前位置:网站首页>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
·
边栏推荐
- 国元证券开户是真的安全可靠吗
- I wrote a chat software with timeout connect function
- What is the GPM scheduler for go?
- ESP Arduino playing with peripherals (V) basic concept of interrupt and timer interrupt
- Investment demand and income forecast report of China's building ceramics industry, 2022-2028
- Global and Chinese market of process beer equipment 2022-2028: Research Report on technology, participants, trends, market size and share
- P1339 [USACO09OCT]Heat Wave G
- The culprit of unrestrained consumption -- Summary
- Is the account opening of Guoyuan securities really safe and reliable
- Generic
猜你喜欢

STM32 GPIO CSDN creative punch in

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

NLP Chinese corpus project: large scale Chinese natural language processing corpus

A dichotomy of Valentine's Day

Idea set class header comments

Tencent interview: can you find the number of 1 in binary?

Is user authentication really simple

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

Zipper table in data warehouse (compressed storage)

What is the potential of pocket network, which is favored by well-known investors?
随机推荐
Advanced C language - pointer 2 - knowledge points sorting
2020.2.14
Regular expressions and text processors for shell programming
What does redis do? Redis often practices grammar every day
How to trade spot gold safely?
网上的低佣金链接安全吗?招商证券怎么开户?
CSP window
Global and Chinese markets for blood and liquid heating devices 2022-2028: Research Report on technology, participants, trends, market size and share
Eight year test old bird, some suggestions for 1-3 year programmers
Vscode regular match replace console log(.*)
【leetcode】300. Longest increasing subsequence (dynamic programming, dichotomy)
UTS | causal reasoning random intervention based on Reinforcement Learning
Pytest unit test framework: simple and easy to use parameterization and multiple operation modes
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
[BSP video tutorial] stm32h7 video tutorial phase 5: MDK topic, system introduction to MDK debugging, AC5, AC6 compilers, RTE development environment and the role of various configuration items (2022-
How to be a professional software testing engineer? Listen to the byte five year old test
8. Go implementation of string conversion integer (ATOI) and leetcode
[cloud native topic -48]:kubesphere cloud Governance - operation - overview of multi tenant concept
Gossip about redis source code 82
Analysis: misunderstanding of choosing WMS warehouse management system