Search

Friday, April 16, 2010

is locking possible on primitive type or on static variable

No , Only object level locking is supported in JAVA . so locks are possible only on Objects .

i.e Synchronized works with the object and methods only.

No comments:

Post a Comment