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 is the primitive type byte?
What is static keyword in java?
Can an interface be final?
Can private class be inherited in java?
Can we have more than one package statement in the source file?
What is comparable and comparator interface? List their differences
What happens to a static var that is defined within a method of a class?
Can we use return in constructor?
Implement two stacks using a single array.
What is ternary operator in java?
What is treeset in java collection?
Is class forname reflection?
What is flush () in java?
How can we create a synchronized collection from given collection?
What is space character in java?