Friday, May 11, 2012

is the below code will work


package com.yagapp.phaseone;

import java.sql.SQLException;

public class Child extends Thread{

public void run()
{
Object  o =null;
synchronized(o){
System.out.println("ramesh");
}
}


public static void main(String[] args){

Thread t  = new Child();

t.start();
}

}

No comments:

Post a Comment