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       Ask Questions on ANYTHING, that arise in your Daily Life at     FORUM9.COM
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 ?    2 Yes 0 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 ?    0 Yes 0 No
Chandrasekhar
 
 
 

 
 
 
Other Core Java Interview Questions
 
  Question Asked @ Answers
 
Iterator in the HashMap is fail-safe means what? IBM6
What is the is a and has a relation ship in oops concept in java? BearingPoint5
Can we call the Thread.sleep in Synchyronozed block? Logica-CMG4
Name the package that always imported by default?  2
methods in Applet?  1
Adapter classes?  3
how to handled exceptions & erros in ejb? Satyam1
What is the smallest package in Java API?  2
If all the methods in abstract class are declared as abstract then what is difference between abstract class and in interface? Synechron4
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
What is run-time class and system class? what is their purpose?  1
Difference between Interface & Abstract class?  3
Explain the term serialization? Wipro4
We have two methods to create methods the threads. 1. Implementing runnable interface 2. Extending to thread class and overriding run method. Among these two which one is better and why? Please explain me in detail.  1
How many methods does cloneable interface contains?  2
What is an enumeration class?  2
Why do we use public static with the main function in Java? Infosys4
what is the difference between equals method and == Professional-Access10
1).what is the difference between below examples String s="vijay"; String s=new String("vijay"); TCS11
How GC (Garbage Collector) knows the objects reference is unused.Whether GC removes the unused object Parmanently or it maintains something.  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