What is an Iterator interface?

Answer Posted / niranjanravi

Iterator provides a general purpose standardised way of
accessing elements one at a time.It has 3 methods
next()
hasNext()
remove()

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is boolean flag in java?

580


What is the use of string and stringbuffer?

553


Explain importance of throws keyword in java?

564


Can you declare a private method as static?

699


How to sort an unsorted array in java?

612






What is a layout manager and what are different types of layout managers available in java awt?

729


What is string made of?

531


What is the default size of set in java?

502


Is java a compiler?

569


How we can declare a static variable?

654


how we can create packages in java?

520


What happens if we override only equals?

582


How to set the permissions to a file in java?

542


What is the difference between instanceof and isinstance?

568


Explain tree set and its features?

599