Java-Method Returns

Method Returns A method may be instructed to return a value after its execution is over. A special statement namely the return shall be used for this purpose. Program After a1.areaVolume( ) executes, the value of a1.areaVolume( ) is 187500. There are two important things to understand about returning values: 1. The type of data returned by … Read more…