Connection and Collection Interfaces in Java

Posted by Bhupi on Stack Overflow See other posts from Stack Overflow or by Bhupi
Published on 2009-11-16T12:59:47Z Indexed on 2010/06/17 7:33 UTC
Read the original article Hit count: 171

Which class implements all the Connection Interfaces which are in javax.microedition.io package and how?

And in the same way which class implements the some of Collection interfaces like Iterator interface. I saw a code: -

Iterator it;
ArrayList list = new ArrayList();

it = list.iterator();

The iterator() return type is "Iterator" which is an interface.

Please tell me what this code is doing is it returning an object of type Iterator? but as far as I know, interface can't be initialized.

© Stack Overflow or respective owner

Related posts about java

Related posts about collections