<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<!--NewPage-->
<html>
<head>
<!-- Generated by javadoc on Wed Jul 28 01:21:15 GMT 1999 -->
<title>
  Class java.lang.ClassCastException
</title>
</head>
<body>
<a name="_top_"></a>
<pre>
<a href="packages.html">All Packages</a>  <a href="tree.html">Class Hierarchy</a>  <a href="Package-java.lang.html">This Package</a>  <a href="java.lang.ArrayStoreException.html#_top_">Previous</a>  <a href="java.lang.ClassNotFoundException.html#_top_">Next</a>  <a href="AllNames.html">Index</a></pre>
<hr>
<h1>
  Class java.lang.ClassCastException
</h1>
<pre>
<a href="java.lang.Object.html#_top_">java.lang.Object</a>
   |
   +----<a href="java.lang.Throwable.html#_top_">java.lang.Throwable</a>
           |
           +----<a href="java.lang.Exception.html#_top_">java.lang.Exception</a>
                   |
                   +----<a href="java.lang.RuntimeException.html#_top_">java.lang.RuntimeException</a>
                           |
                           +----java.lang.ClassCastException
</pre>
<hr>
<dl>
  <dt> public class <b>ClassCastException</b>
  <dt> extends <a href="java.lang.RuntimeException.html#_top_">RuntimeException</a>
</dl>
Thrown to indicate that the code has attempted to cast an object 
 to a subclass of which it is not an instance. For example, the 
 following code generates a <code>ClassCastException</code>: 
 <p><blockquote><pre>
     Object x = new Integer(0);
     System.out.println((String)x);
 </pre></blockquote>
<p>
<hr>
<a name="index"></a>
<h2>
  <img src="images/constructor-index.gif" width=275 height=38 alt="Constructor Index">
</h2>
<dl>
  <dt> <img src="images/yellow-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#ClassCastException()"><b>ClassCastException</b></a>()
  <dd>  Constructs a <code>ClassCastException</code> with no detail message.
  <dt> <img src="images/yellow-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#ClassCastException(java.lang.String)"><b>ClassCastException</b></a>(String)
  <dd>  Constructs a <code>ClassCastException</code> with the specified 
 detail message.
</dl>
<a name="constructors"></a>
<h2>
  <img src="images/constructors.gif" width=231 height=38 alt="Constructors">
</h2>
<a name="ClassCastException"></a>
<a name="ClassCastException()"><img src="images/yellow-ball.gif" width=12 height=12 alt=" o "></a>
<b>ClassCastException</b>
<pre>
 public ClassCastException()
</pre>
<dl>
  <dd> Constructs a <code>ClassCastException</code> with no detail message.
<p>
</dl>
<a name="ClassCastException(java.lang.String)"><img src="images/yellow-ball.gif" width=12 height=12 alt=" o "></a>
<b>ClassCastException</b>
<pre>
 public ClassCastException(<a href="java.lang.String.html#_top_">String</a> s)
</pre>
<dl>
  <dd> Constructs a <code>ClassCastException</code> with the specified 
 detail message.
<p>
  <dd><dl>
    <dt> <b>Parameters:</b>
    <dd> s - the detail message.
  </dl></dd>
</dl>
<hr>
<pre>
<a href="packages.html">All Packages</a>  <a href="tree.html">Class Hierarchy</a>  <a href="Package-java.lang.html">This Package</a>  <a href="java.lang.ArrayStoreException.html#_top_">Previous</a>  <a href="java.lang.ClassNotFoundException.html#_top_">Next</a>  <a href="AllNames.html">Index</a></pre>
</body>
</html>
