当前位置:网站首页>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
·
边栏推荐
- Global and Chinese market of melting furnaces 2022-2028: Research Report on technology, participants, trends, market size and share
- Kubedl hostnetwork: accelerating the efficiency of distributed training communication
- Generic tips
- Unity elementary case notes of angry birds Siki college 1-6
- It is worthy of "Alibaba internal software test interview notes" from beginning to end, all of which are essence
- Suggestions for improving code quality
- Research Report on the scale prediction of China's municipal engineering industry and the prospect of the 14th five year plan 2022-2028
- [PHP basics] session basic knowledge, application case code and attack and defense
- ITK learning notes (VII) the position of ITK rotation direction remains unchanged
- Smart fan system based on stm32f407
猜你喜欢

Pytest unit test framework: simple and easy to use parameterization and multiple operation modes
![Several ways to set up a blog locally [attach relevant software download links]](/img/2f/51a09d9ef71065319ed90306517854.jpg)
Several ways to set up a blog locally [attach relevant software download links]

Kubedl hostnetwork: accelerating the efficiency of distributed training communication

Axure resources and prototype tool Axure RP 9 download

Analysis: misunderstanding of choosing WMS warehouse management system

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

Test the influence of influent swacth on the electromagnetic coil of quartz meter

Briefly understand the operation mode of developing NFT platform

How will the complete NFT platform work in 2022? How about its core functions and online time?

Is it really possible that the monthly salary is 3K and the monthly salary is 15K?
随机推荐
Generic tips
Double efficiency. Six easy-to-use pychar plug-ins are recommended
Suggestions for improving code quality
What is the future of software testing industry? Listen to the test veterans' answers
Several ways to set up a blog locally [attach relevant software download links]
[C language] break and continue in switch statement
Investment demand and income forecast report of China's building ceramics industry, 2022-2028
Global and Chinese market of underwater bags 2022-2028: Research Report on technology, participants, trends, market size and share
Detailed explanation of the relationship between Zhongtai, wechat and DDD
P1629 postman delivering letter
I would like to ask how the top ten securities firms open accounts? Is it safe to open an account online?
Research Report on the scale prediction of China's municipal engineering industry and the prospect of the 14th five year plan 2022-2028
(Video + graphics and text) introduction to machine learning series - Chapter 4 naive Bayes
ISBN number
Similarities and differences of text similarity between Jaccard and cosine
ITK learning notes (VII) the position of ITK rotation direction remains unchanged
2022 system integration project management engineer examination knowledge points: software development model
Social network analysis -social network analysis
Is user authentication really simple
Selenium library 4.5.0 keyword explanation (4)