What is difference between Iterator and for loop
Answer Posted / sundarakannan d
The major difference is Iterator doesn't output the list we
are iterating in sequence.
where as in for we structure it to print in sequence.
| Is This Answer Correct ? | 6 Yes | 21 No |
Post New Answer View All Answers
What does @param args mean in java?
Can a class be final?
What is json parser in java?
Is map ordered in java?
What is the purpose of encapsulation?
Difference between process and thread?
What is the syntax and characteristics of a lambda expression?
How is java hashmap implemented?
What is JDBC Driver interface?How can you retrieve data from the ResultSet
Why charat is used in java?
What’s the difference between callable and runnable?
Can we override a variable in java?
Difference between association, composition and aggregation?
What is lazy programming?
Can constructor return value?