here is what written in javadoc you referenced:
Type code for the primitive type "void". Note that "void" is special in that its only legitimate uses are as a method return type and as a type literal.
Pay attention on the bold word. I think this explains everything.