Java Multithreading Interview Questions Experienced
Java Multithreading Interview Questions Experienced
Experienced Pdf
Question: 1
Question: 2
Question: 3
Question: 4
Question: 5
What object does non static synchronized methods
use for locking?
Non static synchronized methods synchronize on the instance (this) of the class.
Question: 6
In both cases, it means to acquire a lock for the duration of the method, or block and to release
the lock at the end.
It also takes a parameter, which names the object, whose lock will be acquired.
Question: 7
Question: 8
Question: 9
Subclass Thread: The Thread class itself implements Runnable interface, though it runs method
does nothing.
Question: 10
Executors class can be used to easily create ThreadPool in java, also this is the only class
supporting execution of callable implementations.