- Java.lang Package classes
- Java.lang - Home
- Java.lang - Boolean
- Java.lang - Byte
- Java.lang - Character
- Java.lang - Character.Subset
- Java.lang - Character.UnicodeBlock
- Java.lang - Class
- Java.lang - ClassLoader
- Java.lang - Compiler
- Java.lang - Double
- Java.lang - Enum
- Java.lang - Float
- Java.lang - InheritableThreadLocal
- Java.lang - Integer
- Java.lang - Long
- Java.lang - Math
- Java.lang - Number
- Java.lang - Object
- Java.lang - Package
- Java.lang - Process
- Java.lang - ProcessBuilder
- Java.lang - Runtime
- Java.lang - RuntimePermission
- Java.lang - SecurityManager
- Java.lang - Short
- Java.lang - StackTraceElement
- Java.lang - StrictMath
- Java.lang - String
- Java.lang - StringBuffer
- Java.lang - StringBuilder
- Java.lang - System
- Java.lang - Thread
- Java.lang - ThreadGroup
- Java.lang - ThreadLocal
- Java.lang - Throwable
- Java.lang - Void
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
85 Lectures 6 hours
The java.lang.Exceptions provides for different exceptions thrown under java lang package.
|Sr.No.||Exception & Description|
This is Thrown when an exceptional arithmetic condition has occurred.
This is Thrown to indicate that an array has been accessed with an illegal index.
This is Thrown to indicate that an attempt has been made to store the wrong type of object into an array of objects.
This is Thrown to indicate that the code has attempted to cast an object to a subclass of which it is not an instance.
This is Thrown when an application tries to load in a class through its string name using: The forName method in class Class.
This is Thrown to indicate that the clone method in class Object has been called to clone an object, but that the object's class does not implement the Cloneable interface.
This is Thrown when an application tries to access an enum constant by name and the enum type contains no constant with the specified name.
This is the class Exception and its subclasses are a form of Throwable that indicates conditions that a reasonable application might want to catch.
This is an IllegalAccessException is thrown when an application tries to reflectively create an instance (other than an array), set or get a field, or invoke a method, but the currently executing method does not have access to the definition of the specified class, field, method or constructor.
This is Thrown to indicate that a method has been passed an illegal or inappropriate argument.
This is Thrown to indicate that a thread has attempted to wait on an object's monitor or to notify other threads waiting on an object's monitor without owning the specified monitor.
The Signals that a method has been invoked at an illegal or inappropriate time.
This is Thrown to indicate that a thread is not in an appropriate state for the requested operation.
This is Thrown to indicate that an index of some sort (such as to an array, to a string, or to a vector) is out of range.
This is Thrown when an application tries to create an instance of a class using the newInstance method in class Class, but the specified class object cannot be instantiated.
This is Thrown when a thread is waiting, sleeping, or otherwise occupied, and the thread is interrupted, either before or during the activity.
This is Thrown if an application tries to create an array with negative size.
The Signals that the class doesn't have a field of a specified name.
This is Thrown when a particular method cannot be found.
This is Thrown when an application attempts to use null in a case where an object is required.
This is Thrown to indicate that the application has attempted to convert a string to one of the numeric types, but that the string does not have the appropriate format.
This is RuntimeException is the superclass of those exceptions that can be thrown during the normal operation of the Java Virtual Machine.
This is Thrown by the security manager to indicate a security violation.
This is Thrown by String methods to indicate that an index is either negative or greater than the size of the string.
This is Thrown when an application tries to access a type using a string representing the type's name, but no definition for the type with the specified name can be found.
This is Thrown to indicate that the requested operation is not supported.