## Uses of Class
java.lang.VirtualMachineError

- Packages that use VirtualMachineError
  Package | Description
  --- | ---
  java.lang | Provides classes that are fundamental to the design of the Java programming language.
  java.util.zip | Provides classes for reading and writing the standard ZIP and GZIP file formats.

- - ### Uses of VirtualMachineError in java.lang

    Subclasses of VirtualMachineError in java.lang
    Modifier and Type | Class | Description
    --- | --- | ---
    `class` | `InternalError` Thrown to indicate some unexpected internal error has occurred in the Java Virtual Machine.
    `class` | `OutOfMemoryError` Thrown when the Java Virtual Machine cannot allocate an object because it is out of memory, and no more memory could be made available by the garbage collector.
    `class` | `StackOverflowError` Thrown when a stack overflow occurs because an application recurses too deeply.
    `class` | `UnknownError` Thrown when an unknown but serious exception has occurred in the Java Virtual Machine.

  - ### Uses of VirtualMachineError in java.util.zip

    Subclasses of VirtualMachineError in java.util.zip
    Modifier and Type | Class | Description
    --- | --- | ---
    `class` | `ZipError` Signals that an unrecoverable error has occurred.

Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2026, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.