Void

  • The Void class is a placeholder and cannot be instantiated.

  • It primarily serves to represent the void keyword as a Class object.

  • Void.TYPE provides access to the Class object representing the void type.

  • It inherits methods from the Object class, but their functionality may be limited in this context.

public final class Void extends Object

The Void class is an uninstantiable placeholder class to hold a reference to the Class object representing the Java keyword void.

Field Summary

public static final Class<Void> TYPE The Class object representing the pseudo-type corresponding to the keyword void.

Inherited Method Summary

Fields

public static final Class<Void> TYPE

The Class object representing the pseudo-type corresponding to the keyword void.