It also contains Void.TYPE, useful for testing return type with reflection:
public void foo() {}
...
if (getClass().getMethod("foo").getReturnType() == Void.TYPE) ...
It also contains Void.TYPE, useful for testing return type with reflection:
public void foo() {}
...
if (getClass().getMethod("foo").getReturnType() == Void.TYPE) ...