Correct Option: B. singletonList() returns the object as an immutable List. This is an easy way to convert a single object into a list.
Correct Option: B. singletonList() returns the object as an immutable List. This is an easy way to convert a single object into a list.