Tell us something about an iterator.



Tell us something about an iterator...

Answer / Girish Chandra Sharma

An iterator in Java is an object that allows you to access the elements of a collection (like Array, List, Set) and traverses through the collection sequentially. Iterators in Java are implemented using the 'Iterator' interface.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Core Java Interview Questions

Can a vector contain heterogenous objects?

1 Answers  


What is meant by Servelet? What are the parameters of service method?

2 Answers  


Define a package.

1 Answers  


What is the difference between an argument and a parameter?

1 Answers  


When we should use serialization?

1 Answers  


There are 100 keys and values in HashMap.how to get the keys and values?

1 Answers   IBS,


Default layout of Dialog object?

1 Answers  


How do you define a method?

1 Answers  


What about anonymous inner classes in java?

1 Answers  


5 Coding best practices you learned in java?

1 Answers  


Can we declare static variables in JSP page.

3 Answers   TCS,


Which container method is used to cause a container to be laid out and redisplayed in java programming?

1 Answers  


Categories