Which of these statement is incorrect?
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:A
Which of these statement is incorrect?
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.
Explanation: Even if a method is returning a value, it is not nessaccry to store that value.