GeekInterview.com
   Home |  Tech FAQ  |   Interview Questions |  Placement Papers |  Tech Articles |  Learn |  Freelance Projects |  Online Testing |  Geeks Talk |  Job Postings |  Knowledge Base | Site Search |  Add/Ask Question

GeekInterview.com  >  Interview Questions  >  J2EE  >  Core Java
Go To First  |  Previous Question  |  Next Question 
 Core Java  |  Question 457 of 493    Print  
Why wait and notify method in Object class
Why wait and notify method in Object class, why these are not in Thread Class.


  
Total Answers and Comments: 2 Last Update: February 11, 2008     Asked by: peeyush_m1 
  
 Sponsored Links

 
 Best Rated Answer

No best answer available. Please pick the good answer available or submit your answer.
January 06, 2008 12:42:41   #1  
rahultiwari8aug Member Since: January 2008   Contribution: 3    

RE: Why wait and notify method in Object class
wait and notify are in object class because we use them for communication between thread and objects.if wait() is called on thread,that thread has to release object it holds.these facility is not provided to Thread class methods  liek sleep() or suspend() which does not release objects.                                      
 
Is this answer useful? Yes | No
February 11, 2008 06:23:19   #2  
sampra Member Since: February 2008   Contribution: 279    

RE: Why wait and notify method in Object class
beacuse these methods are native ie implementd in some other language
 
Is this answer useful? Yes | No

 Related Questions

Will there be a performance penalty if you make a method synchronized? If so, can you make any design changes to improve the performance

Latest Answer : yes a method can be static and synchronized ...

Latest Answer : The intention behind this question is not clear here. Can u elaborate the question??????????? ...

Latest Answer : yes they are represented as wrapper classes ...

Latest Answer : A static member class or a static member interface comprises the same declarations as those allowed in an ordinary top-level class or interface. A static member class must be declared as a static member of an enclosing class or interface. Nested ...

If there are 2 different versions of object streams on disk and only one object definition, how will the JVM reject the wrong one? Can you fool the JVM

When you have an object passed to a method and when the object is reassigned to a different one, then is the original reference lost

Can we declare multiple main() methods in multiple classes.ie can we have each main method in its class in our program?

Latest Answer : Class c=Class.forName("Student");Student s=(Student)c.newInstance();Another method:Student s1= s.clone(); ...
Read Answers (5) | Asked by : chandu

Latest Answer : we can create object in different ways1.new operator2.class.forName3.newInstance4.object.clone ...
Read Answers (4) | Asked by : chandu


 Sponsored Links

 
Related Articles

Service Oriented Java Business Integration Review

Service Oriented Java Business Integration Review Introduction If you ve read through the texts which give you an introduction to SOA or Web Services you will often find them to be quite frustrating and the reason for this is because they spend too much time referencing business processes which are
 

ODP.NET - OracleCommand Object

ODP NET More About the OracleCommand Object Till now we have seen OracleCommand working with OracleDataReader OracleCommand is not simply meant for OracleDataReader It has got a lot of functionality for itself Let us see few of the most commonly used features of OracleCommand in this section We will
 

Microsoft AJAX Library - Creating Object Members on the Fly

Creating Object Members on the Fly One major difference between OOP in C and ASP NET and OOP in JavaScript is that JavaScript allows creating object members on the fly" This is true for objects and classes that you create yourself and also for JavaScript s own objects and types as well He
 

Microsoft AJAX Library - Object-Oriented JavaScript

Object Oriented JavaScript Objects and classes are implemented differently in JavaScript than in languages such as C VB NET Java or C However when it comes to using them you ll feel on familiar ground You create objects using the new operator and you call their methods or access their fields using t
 

Concepts of Object-Oriented Programming

Object Oriented JavaScript In this chapter you ll learn about OOP Object Oriented Programming and how it relates to JavaScript As an ASP NET developer you probably have some experience working with objects and you may even be familiar with concepts such as inheritance However unless you re already a
 

C++ Pure Virtual Function and Base Class

C Pure Virtual Function and Virtual Base Class In this C tutorial you will learn about pure virtual function declaration of pure virtual function and virtual base class virtual base class and how to implement a virtual base class explained with examples mosgoogle center What is Pure Virtual Function
 

Java and Client Server Models

Java and Client Server Models The Role of Client Servers on the Web Client server models provide the essential mechanisms for working with the Internet In fact most of the World Wide Web is built according to this paradigm In client server models the web browsers run by millions of users are the cli
 

How to Access C++ Class Members

How to Access C Class Members In this C tutorial you will learn how to access Class members dot operator or class member access operator difference between struct and class and  scope resolution operator mosgoogle center It is possible to access the class members after a class is defined an
 

Object-Oriented Client-Server Internet

Object Oriented Client Server Internet OCSI Environments as IT Infrastructure Client Server Basics Object Oriented Client Server Internet OCSI environments provide the IT infrastructure for supporting OCSI applications For our purposes infrastructure refers to operating systems networks middleware
 

JavaScript String Object

JavaScript String Object In this JavaScript tutorial you will learn about String Object purpose of string object in JavaScript purpose of string object indexof method lastIndexOf method and substring method along with syntax and example mosgoogle center Purpose of String Object in JavaScript The mai
 





About Us  |   Privacy Policy  |   Terms and Conditions  |   Contact  |   Site Map  |   Add Question  |   Propose Category  |   RSS Feeds  |   Articles Sitemap  |   Site Updates  |   Add Resource

Copyright © 2005 - 2008 GeekInterview.com. All Rights Reserved
Page copy protected against web site content infringement by Copyscape