File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Threads and Synchronization and the fly likes syn methods Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of JavaScript Promises Essentials this week in the JavaScript forum!
JavaRanch » Java Forums » Java » Threads and Synchronization
Bookmark "syn methods" Watch "syn methods" New topic
Author

syn methods

cybel sheriden
Ranch Hand

Joined: Jan 18, 2005
Posts: 50
hi

can a synchronized method be overridden in the subclass, if yes wht is the effect ,is the overridden method too synchronized.
Ilja Preuss
author
Sheriff

Joined: Jul 11, 2001
Posts: 14112
Moving to Threads and Synchronization...


The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
Mike Gershman
Ranch Hand

Joined: Mar 13, 2004
Posts: 1272
synchronized is not inherited,

The code in the overridding method may be quite different and not require a lock to be thread-safe.


Mike Gershman
SCJP 1.4, SCWCD in process
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: syn methods