Home » Java Programming » Objects and Collections

What will be the output of the program? import java.util.*; class I { public static void main (String[] args) { Object i = new ArrayList().iterator(); System.out.print((i instanceof List)+","); System.out.print((i instanceof Iterator)+","); System.out.print(i instanceof ListIterator); } }

← Previous Next →

Discussion & Comments

No comments yet. Be the first to comment!