Skip to content
CodeWiki
Practice
Paths
Tracks
Cheatsheets
Playground
Glossary
AI era
Search
⌘K
English
English
Chinese
Practice
Paths
Tracks
Cheatsheets
Playground
Glossary
AI era
English
English
Chinese
Practice
/
Quiz
/
Java
/
Generics
Which signature accepts an `Integer` source and a `Number` destination while preserving t…
from Generics
Java 25 LTS
intermediate
1 min
Which signature accepts an `Integer` source and a `Number` destination while preserving type safety?
`<T> void copy(List<? super T> destination, List<? extends T> source)`
`<T> void copy(List<? extends T> destination, List<? super T> source)`
`void copy(List<Number> destination, List<Number> source)`
`void copy(List<?> destination, List<?> source)`
Check
Ask AI about this kata
Report an error
next kata
Which operation is legal because the tested type is reifiable?
Quiz
A new version is available
Reload