What is difference between iterator access and index access?
Answer / Anil Kumar Ojha
Iterator access sequentially traverses a collection, returning each element one-by-one without direct access to the underlying array. Index access provides fast access to any element in the collection by its index, but may result in ConcurrentModificationException if the collection is modified during iteration.
| Is This Answer Correct ? | 0 Yes | 0 No |
What is %02d?
Class c implements interface I containing method m1 and m2 declarations. Class c has provided implementation for method m2. Can I create an object of class c?
What is anti pattern in programming?
1.IN CASE OF DYNAMIC METHOD DISPATCH WHY WE USE REFERENCE VARIABLE,WE CAN USE THE DIFFERENT DEFINED OBJECT DIRECTLY TO ACCESS THE DATA MEMBER AND MEMBER FUNCTION OF THAT RESPECTIVE CLASS?WHAT IS THE MAIN FUNCTION OF "REFERENCE VARIABLE" HERE?
What is meant by attribute?
What is a null class?
why constructor dont have returns type?
Tell us something about different types of casting?
What are the different approaches to implement a function to generate a random number?
1 Answers Axtria, ITC Indian Tobacco Company,
What do you understand by weak reference?
Explain jvm, jre, and jdk?
Does 'true' and 'false' are keywords?