Do all objects have a monitor property?

Posted on 2006-04-12
Last Modified: 2013-11-23
I ran across this line:

monitor.expect(new String[]....

I can't find "monitor" anywhere, is it part of Object class?
Question by:kellyputty
    LVL 92

    Expert Comment

    no, check what the containing class subclasses

    Author Comment

    I did a find for "monitor" on all classes in:
    package com.bruceeckel.simpletest;
    Nothing came up.

    The class imports the following
    package com.bruceeckel.simpletest;
    import java.util.*;
    import java.util.regex.*;

    LVL 86

    Assisted Solution

    You may be thinking of 'the monitor'. See Object.wait and Object.notify
    LVL 92

    Accepted Solution

    Its not the imports to look at its the parent class.
    ie. what it has inherited from
    LVL 86

    Expert Comment


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Why You Should Analyze Threat Actor TTPs

    After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

    Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
    Introduction This article is the second of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers the basic installation and configuration of the test automation tools used by…
    Viewers will learn about the different types of variables in Java and how to declare them. Decide the type of variable desired: Put the keyword corresponding to the type of variable in front of the variable name: Use the equal sign to assign a v…
    Viewers will learn about if statements in Java and their use The if statement: The condition required to create an if statement: Variations of if statements: An example using if statements:

    761 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    11 Experts available now in Live!

    Get 1:1 Help Now