Implement Producer-Consumer problem (using BlockingQueue or wait/notify). Implement a thread-safe Singleton (lazy initialization + double-checked locking). How does ThreadLocal work? When would you use it? Difference between sleep(), yield(), and wait(). Explain the difference between ReentrantLock and synchronized. Implement a Rate Limiter in Java. Write a program to print numbers in sequence using 3 threads (1,2,3…)
Check out your Company Bowl for anonymous work chats.