top | item 40189700

(no title)

xamde | 1 year 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".

discuss

order

No comments yet.