## Uses of Class
java.lang.ClassNotFoundException

- Packages that use ClassNotFoundException
  Package | Description
  --- | ---
  java.io |
  java.lang |

- - ### Uses of ClassNotFoundException in java.io

    Methods in java.io that throw ClassNotFoundException
    Modifier and Type | Method and Description
    --- | ---
    `void` | ObjectInputStream.`defaultReadObject()` Read the non-static and non-transient fields of the current class from this stream.
    `protected ObjectStreamClass` | ObjectInputStream.`readClassDescriptor()` Read a class descriptor from the serialization stream.
    `void` | Externalizable.`readExternal(ObjectInput in)` The object implements the readExternal method to restore its contents by calling the methods of DataInput for primitive types and readObject for objects, strings and arrays.
    `ObjectInputStream.GetField` | ObjectInputStream.`readFields()` Reads the persistent fields from the stream and makes them available by name.
    `Object` | ObjectInputStream.`readObject()` Read an object from the ObjectInputStream.
    `Object` | ObjectInput.`readObject()` Read and return an object.
    `protected Object` | ObjectInputStream.`readObjectOverride()` This method is called by trusted subclasses of ObjectOutputStream that constructed ObjectOutputStream using the protected no-arg constructor.
    `Object` | ObjectInputStream.`readUnshared()` Reads an "unshared" object from the ObjectInputStream.
    `protected Class<?>` | ObjectInputStream.`resolveClass(ObjectStreamClass desc)` Load the local class equivalent of the specified stream class description.
    `protected Class<?>` | ObjectInputStream.`resolveProxyClass(String[] interfaces)` Returns a proxy class that implements the interfaces named in a proxy class descriptor; subclasses may implement this method to read custom data from the stream along with the descriptors for dynamic proxy classes, allowing them to use an alternate loading mechanism for the interfaces and the proxy class.

  - ### Uses of ClassNotFoundException in java.lang

    Methods in java.lang that throw ClassNotFoundException
    Modifier and Type | Method and Description
    --- | ---
    `protected Class<?>` | ClassLoader.`findClass(String name)` Finds the class with the specified binary name.
    `static Class<?>` | Class.`forName(String className)` Returns the `Class` object associated with the class or interface with the given string name.
    `static Class<?>` | Class.`forName(String name, boolean initialize, ClassLoader loader)` Returns the `Class` object associated with the class or interface with the given string name, using the given class loader.
    `Class<?>` | ClassLoader.`loadClass(String name)` Loads the class with the specified binary name.
    `protected Class<?>` | ClassLoader.`loadClass(String name, boolean resolve)` Loads the class with the specified binary name.

Copyright © 2025 API Design. All Rights Reserved.