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                      
info       Did you received any Funny E-Mails from your Friends and like to share with rest of our friends? Yeah!! you can post that stuff   HERE
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
Why we use static and synchronized in method for single 
thread model
example: 
public static synchronized add(){}
 Question Submitted By :: Rdharmendra
I also faced this Question!!     Rank Answer Posted By  
 
  Re: Why we use static and synchronized in method for single thread model example: public static synchronized add(){}
Answer
# 1
Ststic means it belongs to class.When u call a syncronized
method u keep the luck of that class.
 
Is This Answer Correct ?    1 Yes 3 No
Sameer
 

 
 
 
Other Core Java Interview Questions
 
  Question Asked @ Answers
 
What is the life cycle of Thread ? HCL7
wht is customised exception? Prudential1
when to use abstract class and when to use interface? IonIdea5
How to reduce flicking in animation? TCS1
how can we use the servlet as standalone apllication?should we need to extend any class? Logica-CMG2
what is dynamic method dispatch ? Fidelity11
How to decrease number of hashings in has  1
Why Java is not purely object oriented? Persistent21
how to handled exceptions & erros in ejb? Satyam1
What is Transient and volatile iFlex9
Q) I have a ArrayList object, in that object i have added 5 integer values, 5 float values, 5 string values. Now question is how can delete particular type of data ( i.e all int values or all float values or string values) in that list object at a time? Aricent2
what is the difference between multitasking and multithreading?  8
Name the packages in JDK?  2
How Applets & Servlets will communicate with each other?  2
Consider that class classA, abstract class classB, and final classC have been defined.Which one of the following is correct? 1. classA extends classC implements classB 2. class A extends classB, classC 3. classA extends classB 4. classB implements classC  1
types of applets?. TCS3
Hi, well i am unable to understand that why it is mandatory to have same hashcode, if two objects are same? Thanks in advance.  5
Which class should you use to obtain design information about an object  2
what is mean by method signature? Satyam5
what is inner class? HCL5
 
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