Fetch Data from multiple sources asynchronously using Java executor fixed thread pool and combine them in Java
This problem is frequently asked in the interview to check your understanding on threads and your programming skills. Problem statement might change for e.g.
- Print ping pong using two threads.
- Print alternate number using two threads.
- Print even numbers by one thread and odd numbers by another thread.