Alex Rivera | Logout

Is void a type?

Asked 2011-09-26T19:10:34.537
14

I can't answer completely "why should we call "void" is 'return type'?"

How do I prove that "void" is a type?

Edit
Report

1 Answer

-1

void is a type in the Java language (you can read that directly in the Java Language Specification). However the type void has no member values, that is no concrete value will ever have the type void. void is therefore used to indicate that a method cannot return a value when called (that is void is the type of "no value").

answered 2011-10-19T11:57:33.423

Your Answer