ExamVeda
Login
Home
Collections Framework in java
?

What will be the output of the following Java program?
import java.util.*;
class Collection_iterators 
{
    public static void main(String args[]) 
    {
        ListIterator a = list.listIterator();
            if(a.previousIndex()! = -1)
                while(a.hasNext())
              System.out.print(a.next() + " ");
            else
               System.out.print("EMPTY");
    }
}

Answer & Solution
Correct Answer: Option D
Let's discuss the solution. Join the discussion
Examveda
Question posted by Examveda
Community

Join the Discussion

No comments yet Be the first to discuss this question.