Question
Which of these methods can convert an object into a List?
Answer: Option C
Was this answer helpful ?
singletonList() returns the object as an immutable List. This is a easy way to convert a single object into a list. This was added by Java 2.0.
Was this answer helpful ?
Submit Solution