Skip to content

Instantly share code, notes, and snippets.

@mainul35
Created March 12, 2022 10:24
Show Gist options
  • Save mainul35/04dd70a0fb1631c9c9e16a04f80038b7 to your computer and use it in GitHub Desktop.
Save mainul35/04dd70a0fb1631c9c9e16a04f80038b7 to your computer and use it in GitHub Desktop.
Where we can use Java Generics
  1. Using Generics with wildcards
    • Unbounded wildcards
    • Bounded wildcards
      • Upper bounded wildcards
      • Lower bounded wildcards
  2. Arrays with Generic types
  3. Using Generic types as parameter of a class or an interface.
  4. Using Generic types with method or constructor definition.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment