Java Multi Threading Interview Questions

What is the need for threads in Java?

How do you create a thread?

How do you create a thread by extending thread class?

How do you create a thread by implementing runnable interface?

How do you run a thread in Java?

What are the different states of a thread?

What is priority of a thread?

How do you change the priority of a thread?

What is executorservice?

Can you give an example for executorservice?

Explain different ways of creating executor services ?

How do you check whether an executionservice task executed successfully?

What is callable? How do you execute a callable from executionservice?

What is synchronization of threads?

Can you give an example of a synchronized block?

Can a static method be synchronized?

What is the use of join method in threads?

Describe a few other important methods in threads?

What is a deadlock?

What are the important methods in Java for inter-thread communication?

What is the use of wait method?

What is the use of notify method?

What is the use of notifyall method?

Can you write a synchronized program with wait and notify methods?

About Author

Myself KarthiQ, I am the author of this blog, I know ways to write a good article but some how I donot have the skills to make it to reach people, would you like help me to reach more people By sharing this Article in the social media.

Share this Article Facebook
Comment / Suggestion Section
Point our Mistakes and Post Your Suggestions