• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 187
  • Last Modified:

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?
0
kellyputty
Asked:
kellyputty
  • 2
  • 2
2 Solutions
 
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
 
objectsCommented:
Its not the imports to look at its the parent class.
ie. what it has inherited from
0
 
CEHJCommented:
:-)
0

Featured Post

Upgrade your Question Security!

Add Premium security features to your question to ensure its privacy or anonymity. Learn more about your ability to control Question Security today.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now