Discussion :: JAVA MCQs
- Which of these methods can convert an object into a List?
Answer : Option C
Explanation :
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.
Be The First To Comment