20.1
java.lang.Object
THE PACKAGE JAVA.LANG
20.1 The Class
java.lang.Object
The class
Object
is the single root of the class hierarchy. All objects, including
arrays, implement the methods of this class.
public class Object {
public final Class getClass();
public String toString();
public boolean equals(Object obj);
public int hashCode();
protected Object clone()
throws CloneNotSupportedException;
public final void wait()
throws IllegalMonitorStateException,
InterruptedException;
public final void wait(long millis)
throws IllegalMonitorStateException,
InterruptedException;
public final void wait(long millis, int nanos)
throws IllegalMonitorStateException,
InterruptedException;
public final void notify()
throws IllegalMonitorStateException;
public final void notifyAll()
throws IllegalMonitorStateException;
protected void finalize()
throws Throwable;
}
20.1.1
public final Class getClass()
This method returns a reference to the unique object of type
Class
( 20.3) that
represents the class of this object. That
Class
object is the object that is locked by
static synchronized
methods of the represented class.
20.1.2
public String toString()
The general contract of
toString
is that it returns a string that textually repre
sents this object. The idea is to provide a concise but informative representation
that will be useful to a person reading it.
The
toString
method defined by class
Object
returns a string consisting of
the name of the class of which the object is an instance, a commercial at character
458
footer
Our partners:
PHP: Hypertext Preprocessor Best Web Hosting
Java Web Hosting
Inexpensive Web Hosting
Jsp Web Hosting
Cheapest Web Hosting
Jsp Hosting
Cheap Hosting
Visionwebhosting.net Business web hosting division of Web
Design Plus. All rights reserved