Method return types



A return type from a method can be of any data type, either an object or a primitive type. The method can also return void which means that it returns nothing.

These examples illustrate return types:







Search for more Java info on this site here:
Custom Search


Please type any questions here.