What is fail first in java?



What is fail first in java?..

Answer / Kiran Rani

In Java, Fail-Fast Iterator (found in some Collection classes) throws an UnsupportedOperationException or ConcurrentModificationException if the underlying collection is structurally modified while an iteration over it is in progress. This behavior is known as Fail-Fast.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Core Java Interview Questions

Difference between interface and abstract class with ex.

4 Answers   Cognizant, Tech Mahindra,


Is constructor inherited?

1 Answers  


Can you achieve runtime polymorphism by data members?

1 Answers  


What happens if I remove static from main method?

1 Answers  


Compare overloading and overriding?

1 Answers  


What is a vararg?

1 Answers  


What is the difference between java applets and applications?

1 Answers  


What is appletviewer?

1 Answers  


What is the difference between preparedstatement and statement in java?

1 Answers  


Catch(Exception e){ } in that what is Exception and purpose of that in that place exactly?

3 Answers  


What is the return type of readLine() when end of a file is reached?

2 Answers  


Is static a keyword in java?

1 Answers  


Categories