What is the return type of a method that does not returns any value?
Answers
Answered by
1
Answer:
Any method declared void doesn't return a value. It does not need to contain a return statement, but it may do so. ... The data type of the return value must match the method's declared return type; you can't return an integer value from a method declared to return a boolean.
Similar questions