class A{
static void synchronized void call() {
}
synchronized void call(){}
}
One lock will be needed for the class and also a lock is needed for the instance when invoking call().
Are they independent of each other or mutually exclusive?
Mohit Agarwal
Would Be
SCJP.
"The will to win is worthless if you do not have the will to prepare"