Open In App

Java.lang.Void Class in Java

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



   

Article Tags :