What is the difference between overloading and overriding a
function?

Answer Posted / nishchita

In overloading 2 function should have different signature
but in overriding must have exactly same signature.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain the init method?

540


How many bits are in a sentence?

582


What methods are used to get and set the text label displayed by a button object?

554


What is ternary operator? Give an example.

597


What is public/private protected in java?

541






Difference between ‘is-a’ and ‘has-a’ relationship in java?

538


Write a program in java to find the maximum and minimum value node from a circular linked list.

518


What is meant by data hiding in java?

636


What is the difference between I ++ and ++ I in java?

507


How hashset works internally in java?

583


How do you implement polymorphism in our day to day life?

2760


What is the importance of static variable?

586


Is java owned by oracle?

522


When is the arraystoreexception thrown?

566


What is an infinite loop?

546