What will be the output of following code:- List<String>upWork = new ArrayList<>(); upWork.add("jobs"); upWork.add(1, "freelancers"); upWork.add(0, "projects"); upWork.add(1, "earnings"); System.out.println(upWork);
Correct Answer: ["projects", "earnings", "jobs", "freelancers"]
Explanation:
Note: This Question is unanswered, help us to find answer for this one
More Java MCQ Questions