What is difference between Iterator and for loop

Answer Posted / punamchand

Iterator has its own method remove() which is used to remove data while for each don't have its own method

Is This Answer Correct ?    5 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What java ide should I use?

572


Is java 1.7 the same as java 7?

539


What is the difference between equals() and == in java?

531


How many bytes is double?

549


What is a super method?

534






What is object data type?

569


How do you find the independent variable?

519


What are parameters in a method?

587


What are the special characters?

538


Write a function for palindrome and factorial and explain?

661


How many decimal places is a double?

543


Assume a thread has lock on it, calling sleep() method on that thread will release the lock?

627


What is a double vs float?

538


What will be the output of round(3.7) and ceil(3.7)?

683


Can we overload the constructors?

563