| Author |
call non-synchronized method within synchronized method (or) synchronized block?
|
kri shan
Ranch Hand
Joined: Apr 08, 2004
Posts: 1300
|
|
Can i call non-synchronized method within synchronized method ?
synchronized int A() {
B();
}
int B() {
}
(or) Can i call non-synchronized method within synchronized block ?
|
 |
Henry Wong
author
Sheriff
Joined: Sep 28, 2004
Posts: 16684
|
|
Sure... why not?
|
Books: Java Threads, 3rd Edition, Jini in a Nutshell, and Java Gems (contributor)
|
 |
 |
|
|
subject: call non-synchronized method within synchronized method (or) synchronized block?
|
|
|