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

javascript - jQuery: Add class depending on URL in the best way -

caching - How to check if a url path exists in the service worker cache -

Redirect to a HTTPS version using .htaccess -