MCQOPTIONS
Saved Bookmarks
| 1. |
What is the output of this program?import java.util.*; public class Collection_iterators_Example { public static void main(String args[]) { ListIterator object = List.istIterator(); if(object.previousIndex()!= -1) while(object.hasNext()) System.out.print(object.next() + " "); else System.out.print("EMPTY"); } } |
| A. | Compilation Error |
| B. | Runtime Error |
| C. | EMPTY |
| D. | empty |
| E. | None of these |
| Answer» B. Runtime Error | |