Skip to main content

Generics

English

  1. What are the different ways to use generics?
  2. What is the mechanism of type erasure in generics, and why is it used?
  3. What is a bridge method?
  4. What are the limitations of generics, and why do they exist?
  5. What are bounded and unbounded wildcards in generics?

Chinese

  1. 泛型的使用方式有哪幾種?
  2. 什麼是泛型擦除機制?為什麼要進行擦除?
  3. 什麼是橋方法?
  4. 泛型有哪些限制?為什麼會有這些限制?
  5. 什麼是泛型中的限定通配符和非限定通配符?