Java typical usage of Void autoboxing type -
this question has answer here:
- uses java void reference type? 11 answers
what practical usage of void reference type in java? how can me in practical programming?
it useful need return object type (e.g. if return type generic), "return nothing" natural thing do, e.g.
class mycallable implements callable<void> { @override public void call() { // ... whatever return null; } }
Comments
Post a Comment