This week's book giveaway is in the OCAJP 8 forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes call non-synchronized method within synchronized method  (or) synchronized block? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "call non-synchronized method within synchronized method  (or) synchronized block?" Watch "call non-synchronized method within synchronized method  (or) synchronized block?" New topic
Author

call non-synchronized method within synchronized method (or) synchronized block?

kri shan
Ranch Hand

Joined: Apr 08, 2004
Posts: 1400
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: 20165
    
  46


Sure... why not?


Books: Java Threads, 3rd Edition, Jini in a Nutshell, and Java Gems (contributor)
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: call non-synchronized method within synchronized method (or) synchronized block?
 
It's not a secret anymore!