10.12.2012 Views

The Java Language Specification, Third Edition

The Java Language Specification, Third Edition

The Java Language Specification, Third Edition

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

4.3.3 <strong>The</strong> Class String TYPES, VALUES, AND VARIABLES<br />

48<br />

}<br />

public final void wait()<br />

throws IllegalMonitorStateException,<br />

InterruptedException { . . . }<br />

public final void wait(long millis)<br />

throws IllegalMonitorStateException,<br />

InterruptedException { . . . }<br />

public final void wait(long millis, int nanos) { . . . }<br />

throws IllegalMonitorStateException,<br />

InterruptedException { . . . }<br />

public final void notify() { . . . }<br />

throws IllegalMonitorStateException<br />

public final void notifyAll() { . . . }<br />

throws IllegalMonitorStateException<br />

protected void finalize()<br />

throws Throwable { . . . }<br />

<strong>The</strong> members of Object are as follows:<br />

• <strong>The</strong> method getClass returns the Class object that represents the class of<br />

the object. A Class object exists for each reference type. It can be used, for<br />

example, to discover the fully qualified name of a class, its members, its<br />

immediate superclass, and any interfaces that it implements. A class method<br />

that is declared synchronized (§8.4.3.6) synchronizes on the lock associated<br />

with the Class object of the class. <strong>The</strong> method Object.getClass() must be<br />

treated specially by a <strong>Java</strong> compiler. <strong>The</strong> type of a method invocation e.get-<br />

Class(), where the expression e has the static type T, isClass

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!