Java Void type without?

Looks like Void in java is more like Nothing in Kotlin (than Unit).
Void? has only one instance - null (same with Noting?).
Void itself has no instances at all (same with Nothing).
Unit - has only one value too Unit, but Unit? has two values (null and Unit)

1 Like