words = {"Hello", "World"};, 4. ArrayList words = new ArrayList<>(Arrays.asList("Hello", "World"));">
MCQs > IT & Programming > Java > Which code snippet is valid?

Java MCQs

Which code snippet is valid?

Answer

Correct Answer: ArrayList words = new ArrayList<>(Arrays.asList("Hello", "World"));

Explanation:

Note: This Question is unanswered, help us to find answer for this one

Java Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it

search

Java Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it