Java.lang.void Class

Java void Class

The void class in the Java.lang package, i.e Java.lang.void is an uninstantiable placeholder class that holds a reference to the Class object that represents the Java keyword void.

Class declaration

The declaration of java.lang.void class is:

public final class Void 
 extends Object


S.N Fields & Description
1. public static final Class<Void> TYPE
The Class object represents the pseudo-type corresponding to the keyword void.

Methods inherited by Java.lang.void

This class inherits the methods of the following class:

  • java.lang.Object


To open the online compiler click here.


Also Read: Java – Methods

Leave a Reply

Your email address will not be published. Required fields are marked *