Java Programming and Technical Programming Technical

Q. What is an Iterator ?

A. The Iterator interface is used to step through the elements of a Collection. Iterators let you process each element of a Collection. Iterators are a generic way to go through all the elements of a Collection no matter how it is organized. Iterator is an Interface implemented a different way for every Collection

Read Solution (Total 1)

Java Other Question

Q. What is Constructor?

A. A constructor is a special method whose task is to initialize the object of its class. It is special because its name is the same as the class name. They do not have return types, not even void and therefore they cannot return values. They cannot be inherited, though a derived class can call the base class constructor. Constructor is invoked whenever an object of its associated class is created.
Q. What is the List interface?

A. The List interface provides support for ordered collections of objects. Lists may contain duplicate elements.