Collections Framework,CORE JAVA,Interview Questions

Fail Safe and Fail Fast Iterator in Java

25 Sep , 2016  

1) Fail-fast Iterator throws ConcurrentModfiicationException as soon as they detect any structural change in collection during iteration, basica...

Collections Framework,CORE JAVA,Interview,Interview Questions

If you are given a choice to use either ArrayList and LinkedList, Which one would you use and Why ?

17 Aug , 2016  

Ans. ArrayList are implemented in memory as arrays and hence allows fast retrieval through indices but are costly if new elements are to be inse...