Discussion Forum : Introduction To Methods And Streams
Question -

Which of these statement is incorrect?

Options:
A .  Two or more methods with same name can be diffrenciated on the basis of their parameters data type.
B .  Two or more method having same name can be diffrentiated on basis of number of parameters.
C .  Any already defined method in java’s library can be defined again in the program with diffrent data type of parameters.
D .  If a method is returning a value the calling statement must have a varible to store that value.
Answer: Option D

Even if a method is returning a value, it is not nessaccry to store that value.



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

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