If a class has synchronized methods, does its subclass also have the same synchronized methods, whether simply inherited or overriden by the subclass?
Specifically,
the legacy
Vector
has synchronized methods, andStack
is a subclass ofVector
. DoesStack
also have synchronized methods?the legacy
Hashtable
have synchronized methods, andProperties
is a subclass ofHashtable
. DoesProperties
also have synchronized methods?
Motivations of my questions are from What are the replacements for legacy collections `Stack` and `Properties`?
Thanks.