K5kC LogoK5kC | Code & More
Computer Science
AlgorithmsJavaProgramming LanguagesDatabaseSystem Design
Problems
Blind 75Algo KernelDifficulty: EasyDifficulty: MediumDifficulty: Hard
Videos
Projects
AndroidData ScienceComputer VisionSimulations
Tools
UUID GeneratorCode Formatter
Search⌘K

Core Java

OverviewCollection Framework HierarchyCollection InterfaceCollection ClassesListList - List in JavaArrayListLinkedListVectorArrayList Vs Linkedlist Vs Vector in JavaDifference Between an Array and Vector in JavaArray vs ArrayListArrayList vs CopyOnWriteArrayList in JavaStackWays to Iterate through Stack in JavaConvert Array to ArrayList in JavaHow to convert Array to ArrayList in JavaConvert Java ArrayList to ArrayHow to Remove Elements From an ArrayList in JavaHow to Remove Duplicate Elements From an ArrayList in JavaConvert int array to List of Integer in JavaConvert ArrayList to LinkedList in JavaClone a List in JavaFilter List in JavaImmutable List in JavaInitialize List in Java in a Single LineInitialize a list in Java in single line with specified valueList size PuzzleWays to Join two Lists in JavaRemove Slice from a List in JavaRemove nulls from a List in JavaReverse an ArrayList in JavaSetList vs SetHashSetLinkedHashSetTreeSetSortedSetNavigableSetSet ExamplesHashSet Vs TreeSet Vs LinkedHashSet in JavaHow HashSet Works Internally In JavaConvert an Array to a Set in JavaConvert Set of Integer to array of int in JavaConvert Set of String to Array of String in JavaMapMapHow HashMap Works Internally In JavaMap.EntrySortedMapNavigableMapTreeMapHashtableEnumMapDictionaryHashMapWhat Are Initial Capacity And Load Factor Of HashMap In JavaHashMap Vs HashSet In JavaHashMap Vs TreeMap Vs Hashtable Vs LinkedHashMap in JavaLinkedHashMapLRU Cache with LinkedHashMap in JavaIdentityHashMapWeakHashMapProperties5 ways to Clone a Map in JavaConvert Java HashMap To ArrayList In Java5 ways to Iterate Map in Java using entrySet()Sort Map By ValueSort Map by Keys in JavaTop 9 questions about Java Mapsequals method for Checking for Equality in CollectionshashCode Method Need for Java CollectionsCollection Views and WrappersCount the number of calls of put() and get() for a map in JavaArray of ArrayList, ArrayList of ArraySet vs. Set<?>java.util.ConcurrentModificationExceptionCollections and AutoboxingMost Commonly Thrown Exceptions in the Collections FrameworkQueueQueue: remove vs poll and insert vs offerArray to QueueQueue to ArrayBounded vs Unbounded (Blocking vs Non-blocking) QueuesPriorityQueueDequeArrayDequeStack Data Structure: Stack Class vs Deque InterfaceCollections ClassCollections: Legacy Classes and InterfacesGoogle GuavaDifference Between Collection And Collections In JavaCollections Empty List Factory Method9 Factory Methods for Immutable List, Set and MapSorting CollectionsComparable InterfaceComparator InterfaceComparing Numbers in Java8 Comparator comparing MethodsParallel Sort on Arrays and CollectionsComparable vs ComparatorCollection Iterators and EnumeratorsEnumeration InterfaceIteratorIterator InterfaceObtaining Java IteratorIterating on Java IteratorIteration Order in Java IteratorWhy Iterator Does Not Have an add() MethodIterator: Modification During IterationRemove Elements from Java Collection During IterationIterator forEachRemaining methodCreate Custom Java IteratorSet IteratorEnumeration vs Iterator in JavaListIteratorIterator vs ListIterator In JavaDifference Between Iterator And ListIterator In JavaFail-Fast vs Fail-Safe Iterators in JavaSpliteratorSpliterator IntroSpliterator MethodsSpliterator Data CharacteristicsIterable InterfaceGenerics: Implementing the Iterable InterfaceDifferent Ways Of Iterating An ArrayList In JavaAdvantages Of Using ArrayList Over ArraysConvert HashMap to TreeMap in JavaConvert List of Characters to String in JavaConvert List of Integer to array of int in JavaConvert List of String to Array of String in JavaConvert List of String to List of Integer in JavaConvert List to Array in JavaConvert List to Map in JavaConvert List to Set in JavaConvert Map to a List in Java 8Convert Map to an Array in JavaConvert Set of Integer to Set of String in Java 8Convert Set of String to Set of Integer in Java 8Convert Set to List in JavaConvert Set to Map in JavaConvert a String to a List of Characters in JavaConvert an Array to Iterable in JavaConvert an Iterable to a Collection in JavaMerge Two Sets in JavaHow To Remove Duplicate Elements From ArrayList In JavaConcurrentLinkedDeque in JavaConcurrentLinkedQueue in JavaConcurrentSkipListSet in JavaGenerics and Java CollectionsWhy Java Collections were made GenericGeneric Collection ExampleGeneric Iterator ExampleIteration on Generic Java Collection ExampleBitSet Class
Synchronous vs Asynchronous Execution
Callable Tasks Reference
Tasks and Executors Overview
Publishing, Escape and Thread Confinement
Exceptions and Threads
Thread.yield()
CompletableFuture
Executors and Fixed Thread Pools
The Main Thread
ThreadLocal as a Container
Thread Safety Issue: Visibility
Atomicity and Locking
Thread Safety Issue: Race Conditions
Types of Threads in Java
UI Callbacks
Thread Safe vs Thread Compatible
Interrupts and Join
Print Numbers Sequentially Using Even and Odd Threads
Deadlock, Livelock and Starvation Basics
Using wait and notifyAll to Coordinate Threads
Thread State Methods
Concurrency and Synchronization
7 Things Every Java Programmer Should Know About Threads In Java
Thread Priorities
Always terminate the thread which it is interrupted
Assembly Line Concurrency Model
Asynchronous Tasks
Binary Semaphore vs Reentrant Lock
Callable and Future in Java concurrency
Callable Future
Callable
Calling run() instead of start()
Can two threads call a synchronized method and normal method at the same time
Can we Start The Same Thread Twice in Java
Concurrency Evolution and Topics
Concurrency Models and Distributed System Similarities
Concurrency Models
Busy Waiting
What Is Thread Safety?
Concurrency vs Parallelism
CPU Cache Coherence in Java Concurrency
Create Java Thread by Extending Thread class
Create Java Thread by implementing Runnable
Data Race Problem
Deadlock between Threads
Deadlock Prevention in Java
ExecutorCompletionService
ExecutorService
False Sharing in Java
Functional Parallelism Concurrency Model
Future Explained
FutureTask Example Program
Get current Java Thread with Thread.currentThread method
Good practices to use synchronized blocks
Happens-Before Guarantee
How to Synchronize ArrayList, HashSet and HashMap
How to write deadlock and resolve in java
Inter-Thread Communication
Issues with Synchronization
Composing Thread-Safe Objects
Lock
Lock Reentrance
Lock vs monitor in java
Locks in Java
Monitors – The Basic Idea of Java Synchronization
notify() and wait() examples
notify vs notifyAll In Java
Objects as Locks
Parallel Workers Concurrency Model
Pause Java Thread
Race Conditions and Critical Section
Read Write Locks in Java
ReadWriteLock
Reentrance Lockout
ReentrantLock and Conditions
Runnable vs Callable in Java
ScheduledExecutorService
Setting And Getting Java Thread Name And Thread ID
Shared State VS Separate State in Concurrency Models
Statement Reordering and Visibility
Stop Java Thread
Synchronized Blocks
synchronized Keyword
Synchronous Tasks
Task Scheduling with Executors - ScheduledThreadPoolExecutor Example
run() vs start() Quiz
Thread Class
Thread Class Intro
Thread Creation
Thread Dump
Thread - Interrupts and Join
Thread Join
Thread Life Cycle and States in Java
Thread Name - Get and Set
Thread Properties or Attributes Intro
How to Build a Thread-Safe Class
Thread Safety and Immutability
Thread Safety and Shared Resources
Thread Safety in Java
Thread Safety Issues
Thread Safety Strategies
Thread Scheduling - Priority Of A Thread In Java
Thread Signaling
Difference Between sleep() and wait()
Thread Subclass OR Runnable Implementation for Thread Creation
Thread Termination in java
Thread wait, notify and notifyAll Example
ThreadLocal Example - When and How to Use
ThreadLocal
ThreadPoolExecutor and BlockingQueue Example
ThreadPoolExecutor + Callable + Future Example
ThreadPoolExecutor
ThreadPoolExecutor - Java Thread Pool Example
Threads
User Threads vs Daemon Threads in Java
Virtual Threads
volatile keyword
Which Concurrency Model is Best
Why wait(), notify() And notifyAll() Methods Are in Object Class And Not in Thread Class
Why wait(), notify() And notifyAll() Must be Called Inside a Synchronized Method or Block
Computer Science
Java
Core Java
Java Collections

Java Collections

← PreviousC++ Templates vs Java GenericsNext →Java Collection Framework Hierarchy
PrivacyDisclaimerReport an IssueAbout

© 2026 K5kC | Code & More. All rights reserved.

चरैवेति चरैवेति | Keep moving on