Distinguish method overloading and method overriding
Answer Posted / sarbbottam bandyopadhyay
For method overloading the return type have to be same. Only the number of argument or type of argument or both will be different. But return type have to be the same.
| Is This Answer Correct ? | 0 Yes | 3 No |
Post New Answer View All Answers
Write a function for palindrome and factorial and explain?
What is main string [] args?
How are variables stored in memory?
Explain java thread life cycle.
What is polymorphism java example?
If I don't provide any arguments on the command line, then what will the value stored in the string array passed into the main() method, empty or null?
How do you get the length of a string in java?
What is parsing and its types?
What is a variable analysis?
Why java is call by value?
Give the difference between the println method and sqrt method?
Is java call by reference?
What is a conditional statement explain with example?
What is the size of int in 64-bit jvm?
What is the difference between hashmap and hashtable? What is an interface?