Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7665221
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T14:30:28+00:00 2026-05-31T14:30:28+00:00

Possible Duplicate: Why are wait() and notify() declared in Java's Object class? I was

  • 0

Possible Duplicate:
Why are wait() and notify() declared in Java's Object class?

I was wondering why notify(), notifyAll() and wait() methods are present in Object class, whereas other thread related methods are present in Thread class in Java ?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T14:30:30+00:00Added an answer on May 31, 2026 at 2:30 pm

    Threads can use Objects to transmit messages from one thread to another, and these methods allow that to happen. A Thread calls wait() to say “I am waiting for a message to be sent to this object.” Another thread can call notify() to say “I am sending a message to that object.” The Object is therefore a conduit through which threads communicate without explicitly referencing each other. If the methods were in the Thread class, then two threads would need to have references to one another to communicate. Instead, all communicating threads just need to agree to use some specific shared resource.

    [from http://www.coderanch.com/how-to/java/WaitAndNotifyInObjectClass%5D

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Possible Duplicate: How do you send email from a Java app using Gmail? How
Possible Duplicate: Pre & post increment operator behavior in C, C++, Java, & C#
Possible Duplicate: C# Spawn Multiple Threads for work then wait until all finished I
Possible Duplicate: thread with multiple parameters How does one thread a sub with two
Possible Duplicate: Locking main() thread Below you'll find my code, Main calls two threads,
Possible Duplicate: How to wait for a set of threads to complete? I want
Possible Duplicate: Asynchronous shell exec in PHP i need to run a java program
Possible Duplicate: How do I make a list with checkboxes in Java Swing? I
Possible Duplicate: Java Synchronization I'm reading the book Beginning Android Games . It uses
Possible Duplicate: Best way to really grok Java for a C# guy I worked

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.