[Chapter 10] Void
Author: Mark Grand
Date: Fri Aug 8 15:30:03 1997

#

| Chapter 10 The java.lang Package |

# Void

## Name

Void

## Synopsis

Class Name:

  `java.lang.Void`

Superclass:

  `java.lang.Object`

Immediate Subclasses:

  None

Interfaces Implemented:

  None

Availability

  New as of JDK 1.1

## Description

The `Void` class is an uninstantiable wrapper for the primitive type `void`. The class contains simply a reference to the `Class` object that represents the primitive type `void`. The `Void` class is necessary as of JDK 1.1 to support the Reflection API and class literals.

## Class Summary

    public final class java.lang.Void extends java.lang.Object {
      // Constants
      public static final Class TYPE;
    }

## Constants

### TYPE

#### public static final Class TYPE

The `Class` object that represents the primitive type `void`. It is always true that `Void.TYPE` `==` `void.class`.

## Inherited Methods

Method | Inherited From | Method | Inherited From
--- | --- | --- | ---
`clone()` | `Object` | `equals(Object)` | `Object`
`finalize()` | `Object` | `getClass()` | `Object`
`hashCode()` | `Object` | `notify()` | `Object`
`notifyAll()` | `Object` | `toString()` | `Object`
`wait()` | `Object` | `wait(long)` | `Object`
`wait(long, int)` | `Object` |  |

## See Also

Byte; Character; Class; Double; Float; Integer; Long; Short

Throwable |  | The Unicode 2.0 Character Set