Java-What is the difference between <? super E> and <? extends E>?
2012-10-29 10:40
567 查看
What is the difference between
The first says that it's "some type which is an ancestor of E"; the second says that it's "some type which is a subclass of E". (In both cases E
itself is okay.)
<? super E>and
<? extends E>?
The first says that it's "some type which is an ancestor of E"; the second says that it's "some type which is a subclass of E". (In both cases E
itself is okay.)
相关文章推荐
- Difference between <? super T> and <? extends T> in Java
- difference between <? super T> and <? extends T> in Java
- What is the difference between angle bracket < > and double quotes " " while including header files
- Difference between <? super T> and <? extends T> in Java
- What is the difference between << and += while injecting elements to Hash.new([])?
- What is the difference between wc -1 < mydata.dat and wc -1 < mydata.dat ?
- What is the difference between a = a * (2^3) and a = a << 3?
- What’s the difference between <system.web> and <system.webServer>?
- What is the difference between a soft reference and a weak reference in Java?
- What is the difference between a binary tree, a binary search tree, a B tree and a B+ tree?
- what is the difference between zImage (kernel) and boot.img
- What is the difference between Web Farm and Web Garden?
- what is the difference between Association, Dependence, Aggregation and Composition
- Multi-thread: What is the difference between OpenMP and MPI
- What is the difference between a URI, a URL and a URN
- Java - What is difference between HashMap and Hashtable?
- whats is the difference between train, validation and test set, in neural networks?
- What is the difference between a Generative and Discriminative Algorithm?
- What is the difference between extensibility and scalability?
- The Difference between <resource-ref> and <resource-env-ref>,the title should be long...