Do all objects have a monitor property?

I ran across this line:

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

I can't find "monitor" anywhere, is it part of Object class?
kellyputtyAsked:
Who is Participating?
 
objectsCommented:
Its not the imports to look at its the parent class.
ie. what it has inherited from
0
 
objectsCommented:
no, check what the containing class subclasses
0
 
kellyputtyAuthor Commented:
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.io.*;
import java.util.*;
import java.util.regex.*;

0
 
CEHJCommented:
You may be thinking of 'the monitor'. See Object.wait and Object.notify
0
 
CEHJCommented:
:-)
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.