Answer: The thread that it notifies depends on JVM implementation. We can’t really say which thread actually gets notified. It could be the first thread,
Category: Java Multithreading Interview Questions
Collection of Java Multithreading interview questions and answers with example and notes asked in IT Industries.
Answer: Difference between blocked and waiting state of Java thread. BLOCKED state: If a thread is waiting for a lock to enter a synchronized block/method
Answer: A daemon thread in Java is a thread that runs in the background within same process. Daemon threads are like Service providers for other
Answer: setDaemon(boolean value) – Set it to “true” to make thread as a daemon thread. Notes: It is mandatory to call this method before thread