Java Collections Framework

Java Collections Framework

Given a collection of 1 million integers, All ranging between 1 to 9, how would you sort them in Big O(n) time

Carvia Tech | May 19, 2019 at 11:39 AM | 198 views | Java Coding Challenges algorithm-datastructures

This is a typical Integer Sorting problem with a constraint that the number range to sort is very limited in spite 1 million total entries. Integer Sorting with limited range is achieved efficiently with Bucket Sorting.

Read Article

Fail-Safe vs Fail-Fast Iterator in Java Collections Framework

Carvia Tech | July 16, 2018 at 09:32 AM | 107 views

In the face of concurrent modification, the fail-fast iterator fails quickly and cleanly, rather than risking arbitrary, non-deterministic behavior at an undetermined time in the future

Read Article

What is difference between Vector and ArrayList, which one shall be preferred

Carvia Tech | December 25, 2017 at 10:34 AM | 118 views

Both Vector and ArrayList offer similar functionality except few differences between the two, we will examine both classes in this article.

Read Article