which one is the best practice using synchronization method
or synchronization block



which one is the best practice using synchronization method or synchronization block..

Answer / 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

More Programming Languages AllOther Interview Questions

WHAT IS MAIN IMPORTANT THING IN SOFTWARE?

0 Answers   Infosys,


Write a program to read and print a text file on screen

1 Answers   Peerless,


can we retrieve only integer/String type columns from a table,if yes how?

0 Answers  


What is a singleton linked list?

1 Answers   Wipro,


How should a programmer decide whether to use a macro or a subroutine to accomplish a given logical function

1 Answers   R V College of Engineering, University of Jordan,






hai i am mca 2009 fresher.please tell me which certification helps me to get an IT job faster which institute is good in hyderabad.please mail me to prasanna.1856@rediff.com

0 Answers  


what is runtime exception and compiletime exception ?

1 Answers   Accenture,


what are the advantages of sap on other software ?

0 Answers  


This is the portal and portlet interview question API: is JSR 168 API Server: is ibm web sphere portal server6.0 IDE: is RAD 7.0 Question:In normal struts what is the actionservlet? Ans:org.apache.struts.action.ActionServlet. But What is the actionservlet in strutsportlet?

1 Answers   CTS, IBM,


Delta 5 weight scale not connect with oracle application what i can do?

0 Answers  


What is the best action a system can take when deadlock is detected

2 Answers  


1. What coding languages are you comfortable with?

1 Answers  


Categories