Prashant Kumar Rai

59%
Flag icon
Collections.emptyList method. If you were returning a set, you’d use Collections.emptySet; if you were returning a map, you’d use Collections.emptyMap. But remember, this is an optimization, and it’s seldom called for.
Effective Java
Rate this book
Clear rating
Open Preview