Java.lang.Void Class in Java (original) (raw)

Last Updated : 13 Sep, 2023

Java.lang.Void class is a placeholder that holds a reference to a class object if it represents a void keyword. It is an uninstantiable placeholder. Well, uninstantiable means that this class has a private constructor and no other constructor that we can access from outside.

Methods of lang.void class is all inherited from Object class in Java:

Reference:

Java Oracle docs

Similar Reads