0

What is return type

10th Jun 2018, 1:30 PM
rowena
2 Answers
+ 3
The return type is used in Java methods. Return type can be declared as the int, String, Double, Float. It classifies what will be the return type of the certain method. An int type can't return a String. Only a String return type will return a String. That's the same with all other kinds of data types.
10th Jun 2018, 1:42 PM
Akash Pal
Akash Pal - avatar
0
Return type means what type of value a program or function will return.
10th Jun 2018, 1:40 PM
Meet Mehta
Meet Mehta - avatar