(Choose 1 answer)
What is the output of the following code snippet?ArrayList<Integer> nums = new ArrayList();
nums.add(0,2);
nums.add(1,3);
nums.add(2,4);nums.add(3,5);
Iterator it = nums.iterator();
while(it.hasNext()){System.out.print(it.next());}while(it!=null);
Α. 2345
B. 0123
C. 02132435
D. 0325
DIFUOn the exem