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                      
Do you have a collection of Interview Questions and interested to share with us!!
Please send that collection to along with your userid / name. ThanQ
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? How it can be achieved?
 Question Submitted By :: Guest
I also faced this Question!!     Rank Answer Posted By  
 
  Re: What is synchronization? How it can be achieved?
Answer
# 1
Synchronization is a mechanism used to control multiple 
threads from accessing shared resources, if multiple 
threads access shared resources there might be a chance for 
one thread to change the shared values of another thread 
leading to errors
 
Is This Answer Correct ?    3 Yes 1 No
Sainaveen
 
  Re: What is synchronization? How it can be achieved?
Answer
# 2
synchronization is the process of allowing only one thread
at a time.It's been achieved by marking the method as
synchronized or locking a particular portion of code
 
Is This Answer Correct ?    3 Yes 0 No
Ravikiran(aptech Mumbai)
 
 
 

 
 
 
Other Core Java Interview Questions
 
  Question Asked @ Answers
 
For which statements we use a label? Wipro3
why the abstract class has default constructor?  1
I have a sorting issue with a Hashmap. My constraint is that I MUST use the Hashmap and work with existing code. I do a database query and place the results in a Hashmap. When I iterate thru the Hashmap, it loses the original alphabetical sorting done by the database. So, my problem is that I must sort the results coming out of the Hashmap which is then placed into another class.  1
Linked List reverese program Bally-Technologies1
How can a class be accessed, If no access modifiers are declared?  2
question on Thread synchronization Huawei1
what is session facade ?  2
Difference between JDK, JRE, JVM Oracle5
Can we place the any object to key attribute of HashMap<key,value>? HCL3
AWT event listeners extends what interface?  1
how to connect one jsp page to another jsp page???? Symphony4
What is an Applet ?  2
What is encapsulation? Elaborate with example? BMC1
In what type of containers, Border layout is a default layout?  3
Which of these methods belong to Thread & Object class? join, yield, sleep, wait, notify Ericsson2
what's diff between struts 1.1 & 1.2 Wipro2
why we import both packages java.awt.*; and java.awt.event.*; as java.awt.*; can import all classes na. then what is the need of importing java.awt.event.*; ?  2
How two different class threads communicate with each other?. send example code.  4
What are interfaces?  1
If I have 1000 objects and my requirement is to sort them quickly, then which collection would you recommend and why? KPIT3
 
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