TYPES, VALUES, AND VARIABLES
The Class
String
4.3.3
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 {
. . .
}
}
The members of
Object
are as follows:
The method
getClass
returns the
Class
( 20.3) object that represents the
class of the object. A
Class
object exists for each reference type. It can be
used, for example, to discover the fully qualified name of a class, its members,
its immediate superclass, and any interfaces that it implements. A class
method that is declared
synchronized
( 8.4.3.5) synchronizes on the lock
associated with the
Class
object of the class.
The method
toString
returns a
String
representation of the object.
The methods
equals
and
hashCode
are declared for the benefit of hashtables
such as
java.util.Hashtable
( 21.7). The method
equals
defines a notion
of object equality, which is based on value, not reference, comparison.
The method
clone
is used to make a duplicate of an object.
The methods
wait
,
notify
, and
notifyAll
are used in concurrent program
ming using threads, as described in 17.
The method
finalize
is run just before an object is destroyed and is
described in 12.6.
4.3.3 The Class
String
Instances of class
String
( 20.12) represent sequences of Unicode characters.
A
String
object has a constant (unchanging) value. String literals ( 3.10.5) are
references to instances of class
String
.
The string concatenation operator
+
( 15.17.1) implicitly creates a new
String
object.
41
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