Multithreading Interview Questions






1.    What is Thread in Java?
       
2.    How do you implement Thread in Java?
      
3.   When to use Runnable vs Thread in Java?
     
4.   When to use Runnable vs Thread in Java?
       
5.   Difference between Runnable and Callable in Java?
      
6.    How to stop thread in Java?
      
7.   Difference between notify and notifyAll in Java?
      
8.  Why wait, notify and notifyAll are not inside thread class?
      
9. Difference between interrupted and isInterrupted method in Java?
     
10. How do you check if a Thread holds a lock or not?

11.  Difference between synchronized and concurrent collection in Java?
     
12. Difference between Stack and Heap in Java?
     
13. How to create Immutable object in Java?
     
14. What is difference between calling wait() and sleep() method in Java multi-threading?
      
15. Difference between Stack and Heap in Java?
     
16. Explain Thread Life cycle?.

17.  What    Callable  and   Runnable   interface  ?

18.What  is  difference  between   Thread and Process?

19.  What    is  difference   between user Thread  and Demon  Thread?

20.   What  is   Executors  framework?

21 .  What   is  callable   and   Future ?

22.  What     is   FutureTask  classes ?

23.   What    are improvements  in concurrency API  in JAVA8 ?

    















Multithreading Interview Questions Multithreading  Interview  Questions Reviewed by Mukesh Jha on 5:09 AM Rating: 5

No comments:

Add your comment

All Right Reserved To Mukesh Jha.. Theme images by Jason Morrow. Powered by Blogger.