Home » Java Programming » Objects and Collections

What will be the output of the program? import java.util.*; class H { public static void main (String[] args) { Object x = new Vector().elements(); System.out.print((x instanceof Enumeration)+","); System.out.print((x instanceof Iterator)+","); System.out.print(x instanceof ListIterator); } }

← Previous Next →

Discussion & Comments

No comments yet. Be the first to comment!