Home
Q&A
Education
Technology
Credit
General
Health
Insurance
Questions
Ask a Question
What is the difference between Iterator and Enumeration in JAVA?
Home
Education
What is the difference between Iterator and...
asked
May 26, 2021
in
Education
by
JackTerrance
What is the difference between Iterator and Enumeration in JAVA?
java-interview-questions
1
Answer
0
votes
answered
May 26, 2021
by
JackTerrance
Following are the differences:-
No.
Iterator
Enumeration
1)
The Iterator can traverse legacy and non-legacy elements.
Enumeration can traverse only legacy elements.
2)
The Iterator is fail-fast.
Enumeration is not fail-fast.
3)
The Iterator is slower than Enumeration.
Enumeration is faster than Iterator.
4)
The Iterator can perform remove operation while traversing the collection.
The Enumeration can perform only traverse operation on the collection.
Related questions
0
votes
Q: What is the difference between Array and ArrayList in JAVA?
What is the difference between Array and ArrayList in JAVA?...
asked
May 27, 2021
by
JackTerrance
java-interview-questions
0
votes
Q: What is the Main difference between Iterator and Enumeration in JAVA?
What is the Main difference between Iterator and Enumeration in JAVA?...
asked
May 18, 2021
in
Technology
by
JackTerrance
interview-question-answer
technology-questions-answers
0
votes
Q: Which of the following option leads to the portability and security of Java?
Which of the following option leads to the portability and security of Java? a) Bytecode is executed by ... stackoverflow.com 🔗Source: Java Interview Questions and Answers...
asked
Dec 19, 2020
in
Education
by
Editorial Staff
java-mcq-questions
java
java-interview-questions
0
votes
Q: What is the difference between Iterator and ListIterator?
What is the difference between Iterator and ListIterator?...
asked
May 26, 2021
in
Technology
by
JackTerrance
interview-question-answer
technology-questions-answers
0
votes
Q: The iterator maintains the __________ of its execution in between calls so that successive next() requests receive successive result tuples.
The iterator maintains the __________ of its execution in between calls so that successive next() requests ... Database Interview Questions and Answers for Freshers and Experience...
asked
Oct 11, 2021
in
Education
by
JackTerrance
0
votes
Q: Enumeration is done to gain information. Which of the following cannot be achieved using enumeration?
Enumeration is done to gain information. Which of the following cannot be achieved using enumeration? (a) IP Tables ( ... questions and answers pdf, mcq on Cyber Security pdf,...
asked
Nov 4, 2021
in
Education
by
JackTerrance
essential-cyber-security-interview-questions
cyber-security-interview-questions-answers
cyber-security-multiple-choice-questions
cyber-security-mcq-with-answers
cyber-security-mcq
core-cyber-security-questions
0
votes
Q: Enumeration does not depend on which of the following services?
Enumeration does not depend on which of the following services? (a) DNS enumeration (b) SNMP enumeration (c) NTP ... Security questions and answers pdf, mcq on Cyber Security pdf,...
asked
Nov 4, 2021
in
Education
by
JackTerrance
essential-cyber-security-interview-questions
cyber-security-interview-questions-answers
cyber-security-multiple-choice-questions
cyber-security-mcq-with-answers
cyber-security-mcq
core-cyber-security-questions
0
votes
Q: __________ suite is used for NTP enumeration.
__________ suite is used for NTP enumeration. (a) DNS (b) NTP (c) HTTP (d) SNMP The question was posed to ... Cyber Security questions and answers pdf, mcq on Cyber Security pdf,...
asked
Nov 4, 2021
in
Education
by
JackTerrance
essential-cyber-security-interview-questions
cyber-security-interview-questions-answers
cyber-security-multiple-choice-questions
cyber-security-mcq-with-answers
cyber-security-mcq
core-cyber-security-questions
0
votes
Q: Even our emails contain the IP address of the sender which helps in the enumeration. We can get this IP from ___________ from within the email.
Even our emails contain the IP address of the sender which helps in the enumeration. We can get this IP from ... Security questions and answers pdf, mcq on Cyber Security pdf,...
asked
Nov 4, 2021
in
Education
by
JackTerrance
essential-cyber-security-interview-questions
cyber-security-interview-questions-answers
cyber-security-multiple-choice-questions
cyber-security-mcq-with-answers
cyber-security-mcq
core-cyber-security-questions
0
votes
Q: Network enumeration is the finding of __________ or devices on a network.
Network enumeration is the finding of __________ or devices on a network. (a) hosts (b) servers (c) network ... Security questions and answers pdf, mcq on Cyber Security pdf,...
asked
Nov 4, 2021
in
Education
by
JackTerrance
essential-cyber-security-interview-questions
cyber-security-interview-questions-answers
cyber-security-multiple-choice-questions
cyber-security-mcq-with-answers
cyber-security-mcq
core-cyber-security-questions
0
votes
Q: What is enumeration in ethical hacking?
What is enumeration in ethical hacking?...
asked
Feb 16, 2021
in
Technology
by
JackTerrance
interview-question-answer
technology-questions-answers
0
votes
Q: What is fast enumeration in Objective-C?
What is fast enumeration in Objective-C?...
asked
Nov 10, 2020
in
Technology
by
JackTerrance
interview-question-answer
technology-questions-answers
0
votes
Q: Explain What is difference between dequeue() and peek() function of java?
What is difference between dequeue() and peek() function of java? (a) dequeue() and peek() remove and ... Collections Framework of Java Select the correct answer from above options...
asked
Mar 1, 2022
in
Education
by
JackTerrance
java
util
0
votes
Q: Is there any difference of the floating point type between Java and C?
I am importing a project from C to Java which involves a lot of floating-point arithmetic. Are there ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked
Feb 26, 2022
in
Education
by
JackTerrance
javac
0
votes
Q: Is there any difference of the floating point type between Java and C?
I am importing a project from C to Java which involves a lot of floating-point arithmetic. Are there ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked
Feb 26, 2022
in
Education
by
JackTerrance
javac
...