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 Wait and notify are kept in Object class although they 
are used only with Thread Class
 Question Submitted By :: Neeraj_passion2001
I also faced this Question!!     Rank Answer Posted By  
 
  Re: Why Wait and notify are kept in Object class although they are used only with Thread Class
Answer
# 1
Since the locking mechanism happens at the Object level so
they are in Object Class.
 
Is This Answer Correct ?    5 Yes 1 No
Srinivas
 
  Re: Why Wait and notify are kept in Object class although they are used only with Thread Class
Answer
# 2
wait(),notify() are worked on the objects to control the 
multiple thereads,not on theread.Hence these methods are 
difined object class.
 
Is This Answer Correct ?    3 Yes 1 No
Chandrasekhar
 
 
 

 
 
 
Other Core Java Interview Questions
 
  Question Asked @ Answers
 
which one is performance wise advantageious from List,Set,Map?  5
What is the difference between overloading and overriding a function? Infosys7
What restrictions are placed on method overloading and method overriding?  3
What is lazy activation? CMC1
What are the limitations for static method?  3
is this possible to create an array of 0 length? if so how? if not so why? coz we have an array in main() likw this "static void main(String [] s) then what it signifies? Hexaware2
How to sort a vector elements that contains the user define class object? (Note: If Suppose consider, A Student class contain two data members. They are String studentName and int rollNo. I am creating Four objects for this class, each object contains students details like name and roll no. Now i am storing that objects in vector and if i retiving the elements from the vector means then it should be display in sorting order) ProdEx-Technologies2
What is run time polymorphism? Elementus-Technologies6
which swing component is similar to rich text box in .net/vb  1
What is UNICODE?  3
heavy components means what?  4
What is file class and what is its purpose?  1
where do we use init()  2
finalize() method?  4
What is multiple inheritance & can we implement it in java? Satyam4
what is web.xml?and its use? CTS6
Is it possible to create Userdefined Unchecked Exception also?If Yes, give an example?  2
when we have to use final class in java?  2
public class AboutStrings{ public static void main(String args[]){ String s1="hello"; String s2="hel"; String s3="lo"; String s4=s2+s3; //to know the hash codes of s1,s4. System.out.println(s1.hashCode()); System.out.println(s4.hashCode()); // these two s1 and s4 are having same hashcodes. if(s1==s4){ System.out.println("s1 and s4 are same."); }else System.out.println("s1 and s4 are not same."); } } Somebody told me that, == operator compares references of the objects. In the above example even though s1 and s4 are refering to same object(having same hash codes), it is printing s1 and s4 are not same. Can anybody explain in detail why it is behaving like this? Thanks in Advance RavuriVinod TCS3
what are ER diagrams?  2
 
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