Which of these data type can be used for a method having a return statement in it?
(a) void
(b) int
(c) float
(d) both int and float
The question was asked in homework.
Question is taken from Methods Taking Parameters in portion Classes and Methods of Java