-
What does Collections.emptySet() return?
-
- Null object
- The type of Set depends on the parameter passed to the emptySet() method
- Mutable Set
- Immutable Set
- None of these
Correct Option: D
Immutable Set is useful in multithreaded environment. One does not need to declare generic type collection. It is inferred by the context of method call.