81+ How To Return A Array In Java 2022. For this purpose, the method return type must be the type of the array, and the variable that stores the array also has the same data type as the array. We sometimes have to return an empty array for a few reasons, like when the array …