5 ms·
There is also the "Void" type. > The {@code Void} class is an uninstantiable placeholder class to hold a reference to the {@code Class} object representing the
by xamde 2y ago
There is also the "Void" type.
> The {@code Void} class is an uninstantiable placeholder class to hold a reference to the {@code Class} object representing the Java keyword void.
When Java introduced Generics they re-used "Void" type. Method calls need to use "null" when "Void" is the type. So in a way, "type of null" is "Void".