i want to know that how can we access the synchronized block of a class through run method of a thread ,though we can access synchronized method .judt like following A { synchronize (obj) { statement 1 .... }
}
class runDemo implements Runnable { .. .. .. public void run() {
// here we access the synchronize block ...how ????