What is difference between Iterator and for loop
Answer Posted / srikanth nallapaneni
Iterator is used in Collection objects,but for is used for
variables.
| Is This Answer Correct ? | 15 Yes | 18 No |
Post New Answer View All Answers
Explain different types of thread priorities ?
What type of value does sizeof return?
Is void a type?
Is linkedlist thread safe in java?
What is Java Annotations?
Is it possible to compare various strings with the help of == operator?
What is meant by distributed application? Why are we using that in our application?
Given a singly linked list, determine whether it contains a loop or not without using temporary space?
Why we go for collections in java?
How is hashset defined in java?
How do I convert a string to an int in java?
What do you mean by singleton class in java?
What is a java lambda expression?
What defines function?
Differentiate between nested and inner class in java.