What are synchronized methods and synchronized statements?
Answer Posted / tarunam verma
Syncronized methods are executed only after a lock is
acheived on the classes or objects specified in the methids
and after that the methids are executed
synchronized statements are the synchronised the bolck
containg the lock on some resource, statment in that block
are called synchronised statements
Is This Answer Correct ? | 4 Yes | 0 No |
Post New Answer View All Answers
Name three component subclasses that support painting?
Why use POJO when I can use hashmap
How to determine SGA site?
what is the use of State Factories?
How task's priority is used in scheduling?
Explain the difference between object state and behavior?
How substring() method of string class create memory leaks?
Define prototype?
To identify IDL language what mapping mechanism is used?
What is the difference between long.class and long.type?
What are local interfaces? Describe.
What is the map interface?
How would you detect a keypress in a jcombobox?
What modifiers may be used with an interface declaration?
How would you reatach detached objects to a session when the same object has already been loaded into the session?