which one is the best practice using synchronization method
or synchronization block
Answer Posted / prajakta lakhe
synchronization block is the best practice to implement
synchronization. It allows us to synchronize the method whose
source code we dont know. and also this style helps us to
synchronize the particular block of code,where multiple
processes or threads can use a single resource at a time.
| Is This Answer Correct ? | 4 Yes | 0 No |
Post New Answer View All Answers
When will you use shell script/Perl ahead of C/C++?
qtp 9.2 14 days demo version was expired.I uninstalled how to reinstall this again
Give examples of macro quoting function?
what is an INI file?
I have try to write a record in a TDQ from a fle.... what are the steps to do... can anybody plz come with a solution
is it possible to desable particular parameter of the normal orcle report based on some condition ?????? if yes,wht is the function for desabling a parameter...
Which CRM is better to opt, Sebiel CRM or Salesforce CRM or sap CRM? which institute is best one in hyderabad
will it allow to add same value in HashMap class.
what is the difference between an OS(operating system) and Framework?
Where do we need Operator overloading?
hi This is radhika.Can anyone help me to know the question papers of NATIONAL INFORMATICS CENTRE for the post of scientific officer/engineer? if anyone know plz tell me question paper pattern
how to convert hashmap to arraylist with iteration
how to stop execution of step 3 in a job mainframe
What is abstract Method i want the exact definition and is there any possibility to declare class as abstract without any abstract methods in that class?If it is possible then tell me why and how?
Suppose we are doing 4 operations on database using service, first operation is successful but due to some reason remaining 3 operations are failed. I) is this transaction successful or not? ii) How can you give that error message to user?