Sololearn: Learn to Code
New course! Every coder should learn Generative AI!
Try a free lesson
0
Return type in java: Basically return type is used in java methods. Method signature includes this return type. public int show(){ // } we will use methods to do a particular task after completion of task if we want to return something to the calling place these return types will be used. Based on the type of data to be returned will mention it as int , char , float double etc as return type in method signature and return statement should be the last statement of the method body.
15th Dec 2016, 7:19 AM
TechBeat
TechBeat - avatar