Java typical usage of Void autoboxing type -


this question has answer here:

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

Popular posts from this blog

java - pagination of xlsx file to XSSFworkbook using apache POI -

Unlimited choices in BASH case statement -

Redirect to a HTTPS version using .htaccess -