当前位置:网站首页>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
·
边栏推荐
- [PHP basics] cookie basics, application case code and attack and defense
- Recommendation of knowledge base management system
- A Kuan food rushed to the Shenzhen Stock Exchange: with annual sales of 1.1 billion, Hillhouse and Maotai CCB are shareholders
- P1339 [USACO09OCT]Heat Wave G
- Global and Chinese markets of distributed control system (DCS) consumption 2022-2028: Research Report on technology, participants, trends, market size and share
- Is the account opening of Guoyuan securities really safe and reliable
- What is the potential of pocket network, which is favored by well-known investors?
- Research Report on the scale prediction of China's municipal engineering industry and the prospect of the 14th five year plan 2022-2028
- 2022 system integration project management engineer examination knowledge points: software development model
- Report on the construction and development mode and investment mode of sponge cities in China 2022-2028
猜你喜欢
Pytest unit test framework: simple and easy to use parameterization and multiple operation modes
Recommendation of knowledge base management system
Makefile judge custom variables
How to be a professional software testing engineer? Listen to the byte five year old test
Entropy and full connection layer
Investment demand and income forecast report of China's building ceramics industry, 2022-2028
Introducing Software Testing
[Mongodb] 2. Use mongodb --------- use compass
Detailed explanation of the relationship between Zhongtai, wechat and DDD
Double efficiency. Six easy-to-use pychar plug-ins are recommended
随机推荐
Is the account opening of Guoyuan securities really safe and reliable
MySQL is installed as a Windows Service
Why use get/set instead of exposing properties
Investment demand and income forecast report of China's building ceramics industry, 2022-2028
What is the Valentine's Day gift given by the operator to the product?
[software testing] you haven't mastered these real interview questions of big companies?
ISBN number
Subgraph isomorphism -subgraph isomorphism
MySQL 8.0.12 error: error 2013 (HY000): lost connection to MySQL server during query
Global and Chinese markets of distributed control system (DCS) consumption 2022-2028: Research Report on technology, participants, trends, market size and share
Introduction to thread pool
Report on prospects and future investment recommendations of China's assisted reproductive industry, 2022-2028 Edition
2020.2.14
Gossip about redis source code 80
Software testers, how can you quickly improve your testing skills? Ten minutes to teach you
Unity elementary case notes of angry birds Siki college 1-6
How will the complete NFT platform work in 2022? How about its core functions and online time?
[error record] configure NDK header file path in Visual Studio (three header file paths of NDK | ASM header file path selection related to CPU architecture)
[complimentary ppt] kubemeet Chengdu review: make the delivery and management of cloud native applications easier!
[Mongodb] 2. Use mongodb --------- use compass