Java interview warm-up

Integer caching, strings, equals/hashCode, streams and concurrency — the Java fundamentals screens probe.

  1. Integer Cache and == Why 127 == 127 but 128 != 128 for boxed Integers. Easy Most asked Java
  2. String Immutability and Interning Methods return new strings; compile-time constants are interned. Medium Java
  3. Integer Division and String Concatenation Left-to-right evaluation of + with numbers, chars and strings. Easy Java
  4. equals() and hashCode() Done Right Implement value equality so HashSet and HashMap behave correctly. Easy Most asked Java
  5. Reporting with Streams and Collectors Group, count, average and sort records using the Stream API. Medium Most asked Java
  6. Thread-Safe Counting with ExecutorService Fix a race condition with atomics and split work across a thread pool. Medium Java
  7. Two Sum Find the indices of the two numbers that add up to a target. Easy Most asked All 5 languages
  8. LRU Cache A fixed-capacity cache that evicts the least recently used key, with O(1) get and put. Medium Most asked All 5 languages
  9. Merge Intervals Merge all overlapping intervals. Medium Most asked All 5 languages

← All coding problems