Chapter 5
Generics — quiz
5 questions · ~4 min
Chapter 5 quiz
Question 1 of 5
You write a helper that takes an array and returns its first element. You want callers to get back the right element type without casting. Which signature does this?
Chapter 5
5 questions · ~4 min
You write a helper that takes an array and returns its first element. You want callers to get back the right element type without casting. Which signature does this?