Multithreading interview Q&As on differences between X and Y

Q1. What is difference between ‘Executor.submit()’ and ‘Executor.execute()’ method ? A1. The difference is that execute() doesn’t return a “Future” object, so you can’t wait for the completion of the Runnable, and get any exception it throws. The submit(…) method…


Answers are detailed to be useful beyond job interviews. A few Q&As each day will make a huge difference in 3 to 24 months to go places depending on your experience.
Top