Home » JAVA Programming » Methods » Question
  1. Which of these data type can be used for a method having a return statement in it?
    1. int
    2. float
    3. both int and float
    4. void
    5. None of these
Correct Option: C

Both int and float data type can be used for a method having a return statement in it.



Your comments will be displayed only after manual approval.