java - On Void return type -
java - On Void return type -
if 1 needs homecoming void type, javadoc describes
a class uninstantiable placeholder class hold reference class object representing java keyword void.
why next still require null returned?
public void blah() { homecoming null; // seems want null }
void class other, function returning void has homecoming reference (such null). in fact, void final , uninstantiable, means null thing function returning void return.
of course of study public void blah() {...} (with lowercase v) doesn't have homecoming anything.
if you're wondering possible uses void, see uses java void reference type?
java void
Comments
Post a Comment