Example usage for java.lang Object subclass-usage

List of usage examples for java.lang Object subclass-usage

Introduction

In this page you can find the example usage for java.lang Object subclass-usage.

Usage

From source file GeneralInterrupt.java

public class GeneralInterrupt extends Object implements Runnable {
    public void run() {
        try {
            System.out.println("in run() - about to work2()");
            work2();
            System.out.println("in run() - back from  work2()");

From source file OnlyOneInMethod.java

public class OnlyOneInMethod extends Object {
    private String objID;

    public OnlyOneInMethod(String objID) {
        this.objID = objID;
    }

From source file TwoObjects.java

public class TwoObjects extends Object {
    private String objID;

    public TwoObjects(String objID) {
        this.objID = objID;
    }

From source file InnerSelfRunMain.java

public class InnerSelfRunMain extends Object {
    private Thread internalThread;

    private volatile boolean noStopRequested;

    public InnerSelfRunMain() {

From source file SyncBlock.java

public class SyncBlock extends Object {
    private Object longLock;

    public SyncBlock() {
        longLock = new Object();
    }

From source file EarlyReturn.java

public class EarlyReturn extends Object {
    private volatile int value;

    public EarlyReturn(int v) {
        value = v;
    }

From source file ThreadIDMain.java

public class ThreadIDMain extends Object implements Runnable {
    private ThreadID var;

    public ThreadIDMain(ThreadID var) {
        this.var = var;
    }

From source file SafeCollectionIteration.java

public class SafeCollectionIteration extends Object {
    public static void main(String[] args) {
        List wordList = Collections.synchronizedList(new ArrayList());

        wordList.add("Iterators");
        wordList.add("require");

From source file ProducerComsumer.java

public class ProducerComsumer extends Object {
    private Object slot;

    public ProducerComsumer() {
        slot = null; // null indicates empty
    }

From source file SafeListCopy.java

public class SafeListCopy extends Object {
    public static void printWords(String[] word) {
        System.out.println("word.length=" + word.length);
        for (int i = 0; i < word.length; i++) {
            System.out.println("word[" + i + "]=" + word[i]);
        }