Discussion Forum : Introduction To Methods And Streams
Question -

What is the return type of a method that does not returns any value?

Options:
A .  int
B .  float
C .  void
D .  double
Answer: Option C

Return type of an method must be made void if it is not returning any value.



Was this answer helpful ?
Next Question
Submit Your Solution hear:

Your email address will not be published. Required fields are marked *