Answer Posted / ravikiran(aptech mumbai)
yes indirectly because we can aquire a lock on the object of
the class.And for the class level lock we make use of static
synchromnized block.
| Is This Answer Correct ? | 8 Yes | 2 No |
Post New Answer View All Answers
What is ternary operator in java?
Does java initialize arrays to zero?
Why you should not use singleton?
What is garbage collection? What is the process that is responsible for doing that in java?
What is appletviewer?
What are the ways in which a thread can enter the waiting state?
From the two, which would be easier to write: synchronization code for ten threads or two threads?
What are features of java?
Is singleton a bad practice?
What is definition and declaration?
What is rule of accessibility in java?
Is string a wrapper class?
Where will it be used?
What is a instance variable in java?
If goto and const is reserve words than why it is not work in java?