no its not locking the object in case of static synchronised
in case of static
the output is
printname
printvalue
donewaiting
why
Type: Posts; User: lodha13
no its not locking the object in case of static synchronised
in case of static
the output is
printname
printvalue
donewaiting
why
class B
{
public static synchronized void printName()
{
try
{
System.out.println("printName");
Thread.sleep(5*1000);
}
...