Java Collections Framework

Java Collections Framework

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

Upasana | November 22, 2020 | 2 min read | 669 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

Upasana | July 16, 2018 | 3 min read | 896 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

Upasana | December 25, 2017 | 1 min read | 238 views

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

Read Article