Articles by Tag #collection

Browse our collection of articles on various topics related to IT technologies. Dive in and explore something new!

Can a HashMap Have a Null Key? What About ConcurrentHashMap?

Learn whether HashMap and ConcurrentHashMap in Java allow null keys or values. Understand why, with...

Learn More 6 1Nov 5 '25

When Would You Use a TreeMap Over a HashMap?

Learn when to use a TreeMap over a HashMap in Java. Understand their differences, use cases,...

Learn More 5 0Nov 6 '25

🔄 What’s the Difference Between Iterator and ListIterator in Java?

Learn the key differences between Iterator and ListIterator in Java with clear explanations,...

Learn More 5 0Nov 9 '25

🌳 Difference Between HashSet and TreeSet in Java

Learn the difference between HashSet and TreeSet in Java with clear examples, simple explanations,...

Learn More 5 0Nov 8 '25

Difference between HashMap and ConcurrentHashMap in Java

Discover the key difference between HashMap and ConcurrentHashMap in Java with simple examples, use...

Learn More 5 0Nov 3 '25

What is Load Factor and Initial Capacity in HashMap?

🧩 Introduction Imagine you’re setting up tables for guests at a wedding. If you have too...

Learn More 5 0Nov 3 '25

How Does HashMap Handle Hash Collisions Internally

Learn how HashMap handles hash collisions internally in Java using buckets, linked lists, and trees....

Learn More 3 0Nov 4 '25

Collection framework

What is the difference between fail-fast and fail-safe iterators? ● Fail-fast (like in ArrayList,...

Learn More 1 0Nov 27 '25

Differences between ArrayList and LinkedList in Java

Learn the key differences between ArrayList and LinkedList in Java with easy examples, use cases, and...

Learn More 5 0Oct 31 '25

Collection Interface - List

** ** The Collection interface is the root interface of the Java Collection Hierarchy. It is located...

Learn More 1 0Nov 27 '25

10 collection types & their related posts in Python

Buy Me a Coffee☕ *Memo for 10 collection types: My post explains a list (1). My post explains a...

Learn More 0 0Nov 6 '25

🧠 What is the Difference Between Fail-Fast and Fail-Safe Iterators in Java?

Learn the difference between fail-fast and fail-safe iterators in Java with simple examples, clear...

Learn More 5 0Nov 7 '25

⚖️ What’s the Difference Between Comparable and Comparator in Java?

Learn the difference between Comparable and Comparator in Java with simple examples, use cases, and...

Learn More 5 0Nov 10 '25

Six Common Mistakes in Log Collection Failures: Practices From Local Management Anti-patterns to LoongCollector Standard

Background When monitoring the running status of the system and troubleshooting complex...

Learn More 3 0Aug 14 '25

Java 8 — map() vs flatMap()

side-by-side comparison of map() vs flatMap() on the same dataset so you can clearly see the...

Learn More 7 2Aug 10 '25

What Is the Difference Between Fail-Safe and Fail-Fast Iterators?

Overview of Iterators in Java In Java, iterators are objects that allow sequential access to...

Learn More 5 0Sep 21 '25

What is Tracing garbage collection ?

In computer programming, tracing garbage collection is a form of automatic memory management that...

Learn More 0 0May 14 '25

What is Garbage Collection?

Garbage Collection (GC) in Java is the automatic memory management process used by the JVM to remove...

Learn More 0 0Feb 24

What is Concurrent Collection in Java?

Concurrent Collections are special collection classes provided in Java that allow multiple threads to...

Learn More 0 0Feb 27