Originally posted by leena rane:
an object has 2 methods with synchronized keyword,
2 methods without synchronized keyword
if a thread is executing synchronized method :
1.I thing the other threads cannot call both of the synchronized methods,right??
2.Can other threads call unsynchronized methods on the same object?
3.Can other threads call variables of this object?
Thanx in advance
....The following code is not working:.....
Gagan (/^_^\) SCJP2 SCWCD IBM486 <br />Die-hard JavaMonk -- little Java a day, keeps you going.<br /><a href="http://www.objectfirst.com/blog" target="_blank" rel="nofollow">My Blog</a>
Gagan (/^_^\) SCJP2 SCWCD IBM486 <br />Die-hard JavaMonk -- little Java a day, keeps you going.<br /><a href="http://www.objectfirst.com/blog" target="_blank" rel="nofollow">My Blog</a>
Gagan (/^_^\) SCJP2 SCWCD IBM486 <br />Die-hard JavaMonk -- little Java a day, keeps you going.<br /><a href="http://www.objectfirst.com/blog" target="_blank" rel="nofollow">My Blog</a>
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime. |