Categories:
Audio (13)
Biotech (29)
Bytecode (36)
Database (77)
Framework (7)
Game (7)
General (507)
Graphics (53)
I/O (35)
IDE (2)
JAR Tools (101)
JavaBeans (21)
JDBC (121)
JDK (426)
JSP (20)
Logging (108)
Mail (58)
Messaging (8)
Network (84)
PDF (97)
Report (7)
Scripting (84)
Security (32)
Server (121)
Servlet (26)
SOAP (24)
Testing (54)
Web (15)
XML (309)
Collections:
Other Resources:
JDK 1.1 Source Code Directory
JDK 1.1 source code directory contains Java source code for JDK 1.1 core classes:
"C:\fyicenter\jdk-1.1.8\src".
Here is the list of Java classes of the JDK 1.1 source code:
✍: FYIcenter
⏎ java/lang/Throwable.java
/* * @(#)Throwable.java 1.34 01/12/10 * * Copyright 2002 Sun Microsystems, Inc. All rights reserved. * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. */ package java.lang; /** * The <code>Throwable</code> class is the superclass of all errors * and exceptions in the Java language. Only objects that are * instances of this class (or of one of its subclasses) are thrown * by the Java Virtual Machine or can be thrown by the Java * <code>throw</code> statement. Similarly, only this class or one of * its subclasses can be the argument type in a <code>catch</code> * clause. * <p> * A <code>Throwable</code> class contains a snapshot of the * execution stack of its thread at the time it was created. It can * also contain a message string that gives more information about * the error. * <p> * Here is one example of catching an exception: * <p><blockquote><pre> * try { * int a[] = new int[2]; * a[4]; * } catch (ArrayIndexOutOfBoundsException e) { * System.out.println("exception: " + e.getMessage()); * e.printStackTrace(); * } * </pre></blockquote> * * @author unascribed * @version 1.31, 01/26/97 * @since JDK1.0 */ public class Throwable implements java.io.Serializable { /** * Native code saves some indication of the stack backtrace in this * slot. */ private transient Object backtrace; /** * Specific details about the Throwable. For example, * for FileNotFoundThrowables, this contains the name of * the file that could not be found. */ private String detailMessage; /** use serialVersionUID from JDK 1.0.2 for interoperability */ private static final long serialVersionUID = -3042686055658047285L; /** * Constructs a new <code>Throwable</code> with no detail message. * The stack trace is automatically filled in. * * @since JDK1.0 */ public Throwable() { fillInStackTrace(); } /** * Constructs a new <code>Throwable</code> with the specified detail * message. The stack trace is automatically filled in. * * @param message the detail message. * @since JDK1.0 */ public Throwable(String message) { fillInStackTrace(); detailMessage = message; } /** * Returns the detail message of this throwable object. * * @return the detail message of this <code>Throwable</code>, * or <code>null</code> if this <code>Throwable</code> does not * have a detail message. * @since JDK1.0 */ public String getMessage() { return detailMessage; } /** * Creates a localized description of this <code>Throwable</code>. * Subclasses may override this method in order to produce a * locale-specific message. For subclasses that do not override this * method, the default implementation returns the same result as * <code>getMessage()</code>. * * @since JDK1.1 */ public String getLocalizedMessage() { return getMessage(); } /** * Returns a short description of this throwable object. * * @return a string representation of this <code>Throwable</code>. * @since JDK1.0 */ public String toString() { String s = getClass().getName(); String message = getMessage(); return (message != null) ? (s + ": " + message) : s; } /** * Prints this <code>Throwable</code> and its backtrace to the * standard error stream. * * @see java.lang.System#err * @since JDK1.0 */ public void printStackTrace() { System.err.println(this); printStackTrace0(System.err); } /** * Prints this <code>Throwable</code> and its backtrace to the * specified print stream. * * @since JDK1.0 */ public void printStackTrace(java.io.PrintStream s) { s.println(this); printStackTrace0(s); } /** * Prints this <code>Throwable</code> and its backtrace to the specified * print writer. * * @since JDK1.1 */ public void printStackTrace(java.io.PrintWriter s) { s.println(this); printStackTrace0(s); } /* The given object must have a void println(char[]) method */ private native void printStackTrace0(Object s); /** * Fills in the execution stack trace. This method is useful when an * application is re-throwing an error or exception. For example: * <p><blockquote><pre> * try { * a = b / c; * } catch(ArithmeticThrowable e) { * a = Number.MAX_VALUE; * throw e.fillInStackTrace(); * } * </pre></blockquote> * * @return this <code>Throwable</code> object. * @see java.lang.Throwable#printStackTrace() * @since JDK1.0 */ public native Throwable fillInStackTrace(); }
⏎ java/lang/Throwable.java
Or download all of them as a single archive file:
File name: jdk-1.1.8-src.zip File size: 1574187 bytes Release date: 2018-11-16 Download
⇒ Backup JDK 1.1 Installation Directory
2018-11-17, 177031👍, 0💬
Popular Posts:
JDK 11 jdk.localedata.jmod is the JMOD file for JDK 11 Localedata module. JDK 11 Locale Data module ...
maven-core-3.5.4.jar is the JAR file for Apache Maven 3.5.4 Core module. Apache Maven is a software ...
Saxon-HE (home edition) is an open source product available under the Mozilla Public License. It pro...
JDK 11 jdk.charsets.jmod is the JMOD file for JDK 11 Charsets module. JDK 11 Charsets module compile...
JDK 11 jdk.jfr.jmod is the JMOD file for JDK 11 JFR module. JDK 11 JFR module compiled class files a...