ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
tip   SiteMap shows list of All Categories in this site.
Google
 
Categories  >>  Software  >>  Core Java  >>  Java J2EE  >>  Java Related
 
 


 

 
 Core Java interview questions  Core Java Interview Questions
 Advanced Java interview questions  Advanced Java Interview Questions
 Swing interview questions  Swing Interview Questions
 EJB interview questions  EJB Interview Questions
 Servlets interview questions  Servlets Interview Questions
 Struts interview questions  Struts Interview Questions
 JDBC interview questions  JDBC Interview Questions
 JMS interview questions  JMS Interview Questions
 SunOne interview questions  SunOne Interview Questions
 J2EE interview questions  J2EE Interview Questions
 Weblogic interview questions  Weblogic Interview Questions
 Websphere interview questions  Websphere Interview Questions
 Java Networking interview questions  Java Networking Interview Questions
 Java J2EE AllOther interview questions  Java J2EE AllOther Interview Questions
Question
what is synchronization
 Question Submitted By :: Guest
I also faced this Question!!     Rank Answer Posted By  
 
  Re: what is synchronization
Answer
# 1
Synchronization is the process of allowing only one thread 
at atime on a shared resource. It is like a monitor on a 
shared resource.It can be done either 'Block level' 
or 'Method level'. Before enter in to the synchronized area 
the thread shold get the lock on the method or block object.
 
Is This Answer Correct ?    1 Yes 0 No
Surya Simhadri
 
  Re: what is synchronization
Answer
# 2
Two or more threads trying to access the same method at same
point of time leads to Synchronization.If that method is
declared as synchronized,only one thread can access at that
time of another thread can access that method only if the
first thread task is completed.
 
Is This Answer Correct ?    0 Yes 0 No
Reddy
 
 
 
  Re: what is synchronization
Answer
# 3
synchronization is a process in which only one thread 
executes at a time.when one thread release the resources 
then other thread used the resources.if one thread not 
release the resources till that time other thread not uses 
the resources.
 
Is This Answer Correct ?    2 Yes 0 No
Sonam Sharma
 

 
 
 
Other Core Java Interview Questions
 
  Question Asked @ Answers
 
if arraylist size is increased from initial size what is the size of arraylist...suppose initial is 100 , if i add 101 element what is the size...  6
What is Marker interface in java? and what is clone? Wipro7
How do you relate a Interface to a Class? Tell me in Detail?  4
C and C++ has constructors and distructors, why does Java does not have distructors? T3-Softwares1
How to avoid the runtime exception ?  2
what are class,constructor and primitive data types?  2
In Serialization, whether you will use Static variables? HCL2
What is the top class of AWT event hierarchy?  5
After compilation of java program we'll get .class code. If it's generated in OS Windows XP will it work on OS Linux? If yes why? If no why? Aricent4
EDS (Electronic Data Systems India Pvt Ltd) at Chennai on 16-12-2006. EDS1
what is the life cycle of jsp? Photon2
Can we declare an anonymous class as both extending a class and implementing an interface? Wipro7
what is an virtual function TCS2
Same common question what is Map,Set,HashMap,List???? Symphony3
Inorder to specify a container?s layout, which method is used?  1
What is the return type of read()?  2
In what type of containers, Border layout is a default layout?  3
What is an abstract class? Wipro5
how many ways we can serialize the java object? Satyam1
why is multiple inheritance not allowed in java? Elementus-Technologies5
 
For more Core Java Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com