This week's book giveaway is in the Agile and other Processes forum. We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line! See this thread for details.
In this case ob has lock & the thread executing this block will aquire that lock . -------------------------------------------------- synchronized method :
synchronized void m() {
}
main thread is executing this method , so it will aquire lock of which object ???