Multithreading Interview
Questions
To view the live version of the
page,
click here.
© Copyright by Interviewbit
Multithreading Interview Questions in Java for
Freshers
1.
What are the benefits of using Multithreading?
2.
What is Thread in Java?
3.
What are the two ways of implementing thread in Java?
4.
What's the difference between thread and process?
5.
What’s the difference between class lock and object lock?
6.
What's the difference between User thread and Daemon thread?
7.
How can we create daemon threads?
8.
What are the wait() and sleep() methods?
9.
What’s the difference between notify() and notifyAll()?
10.
Why wait(), notify(), and notifyAll() methods are present in Object class?
11.
What is Runnable and Callable Interface? Write the difference between them.
12.
What is the start() and run() method of Thread class?
13.
Explain thread pool?
14.
What’s the purpose of the join() method?
15.
What do you mean by garbage collection?
16.
Explain the meaning of the deadlock and when it can occur?
17.
Explain volatile variables in Java?
18.
How do threads communicate with each other?
19.
Can two threads execute two methods (static and non-static concurrently)?
20.
What is the purpose of the finalize() method?
Page 1
© Copyright by Interviewbit
Contents
Dostları ilə paylaş: |