What are the main advantages of Internal Iterator over External Iterator in Java 8?

Some of the main advantages of Internal Iterator are:

  • Internal Iterator is based on Functional programming, therefore it can work on declarative style code.
  • There is no need to sequentially iterate elements in Internal Iterator.
  • Code is more readable and concise in Internal Iterator.
  • Internal Iterator supports concurrency and parallel processing.
Read the full book at www.amazon.com
Posted in Java 8, Java 8 Interview Questions

Leave a Reply

Your email address will not be published. Required fields are marked *