ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
info       Did you received any Funny E-Mails from your Friends and like to share with rest of our friends? Yeah!! you can post that stuff   HERE
Google
 
Categories  >>  Software  >>  Core Java  >>  Java J2EE  >>  Java Related
 
 


 

 
 Core Java interview questions  Core Java Interview Questions
 Advanced Java interview questions  Advanced Java Interview Questions
 Swing interview questions  Swing Interview Questions
 EJB interview questions  EJB Interview Questions
 Servlets interview questions  Servlets Interview Questions
 Struts interview questions  Struts Interview Questions
 JDBC interview questions  JDBC Interview Questions
 JMS interview questions  JMS Interview Questions
 SunOne interview questions  SunOne Interview Questions
 J2EE interview questions  J2EE Interview Questions
 Weblogic interview questions  Weblogic Interview Questions
 Websphere interview questions  Websphere Interview Questions
 Java Networking interview questions  Java Networking Interview Questions
 Java J2EE AllOther interview questions  Java J2EE AllOther Interview Questions
Question
What is the differenc between Enemuration interface and 
iterator interface according to accessing?
 Question Submitted By :: P.mallesh
I also faced this Question!!     Rank Answer Posted By  
 
  Re: What is the differenc between Enemuration interface and iterator interface according to accessing?
Answer
# 1
Enumeration and Iterator both are using looping statement.
Enumeration is legacy class.iterator is cotains extra 
method than Enumeration.
 
Is This Answer Correct ?    0 Yes 1 No
Eganesh
 
  Re: What is the differenc between Enemuration interface and iterator interface according to accessing?
Answer
# 2
While iteration we can remove the elements but it's not in 
case enumeration and Enumeration is faster than the 
iteration.
 
Is This Answer Correct ?    1 Yes 0 No
Suresh Gangapatnam
 
 
 
  Re: What is the differenc between Enemuration interface and iterator interface according to accessing?
Answer
# 3
Enumeration is a read only interface, by using this we can 
loop thro' the elements only. But using iterator interface 
we can traverse and also remove the object.
 
Is This Answer Correct ?    2 Yes 1 No
Muthuraman
 
  Re: What is the differenc between Enemuration interface and iterator interface according to accessing?
Answer
# 4
Enumeration contains elements method for iteration.
And hasMoreElements and nextelement() methods to get the 
values from the collection.
Iterator contains iterator() method for iteration
And hasnext() and next() methods for the retrieval of 
values from the collection.
 
Is This Answer Correct ?    2 Yes 0 No
Ravikiran
 

 
 
 
Other Core Java Interview Questions
 
  Question Asked @ Answers
 
what is a package?  8
where lives in jvm  3
Explain different ways of passing arguments to sub-routine?  1
What for read() function?  3
why String class is immutable. iGate3
how can u create the object with out new operator  2
What is the difference between throw and throws? Cap-Gemini2
printstream class method println() is calling using System class and its static object out .how it is explain any one in detail with example ? TCS1
What are field variable and local variable?  2
what is the difference between statis block and static variable  5
What method is used to compare two strings ?  4
which one is performance wise advantageious from List,Set,Map?  5
Differentiate Vector and ArrayList? Wipro4
byte a=5; byte b=5; byte c=a+b; System.out.println(c); whats the o/p? Wipro5
Instead of writing Home, Remote Interfaces if i directly extends EJBObject to bean class what happens? Flextronics1
what Data encapsulation in java?  4
Which java.util classes and interfaces support event handling?  2
I need to know about complete topic in java's collections i with an examples TCS1
what is difference between front controller and action servlet?  2
Have you used any version control ? if so explain about it?  1
 
For more Core Java Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com