Explain method overloading and overriding?

Answer Posted / prasad

when we use method in a class hane same name with different
arguments are calles method overloading
when we use methodes with same class name and same
arguments called ovverriding

Is This Answer Correct ?    7 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a instance variable?

578


Is 9 a prime number?

460


What is java virtual machine and how it is considered in context of java’s platform independent feature?

643


What are three ways in which a thread can enter the waiting state in java programming?

677


What is methods and methodology?

522






What is an example of a boolean?

564


What is an argument in java?

501


Which is better 64 bit or 32 bit?

500


What is the difference between checked exception and unchecked exception?

518


Can you extend singleton class?

595


Give example to differentiate between call by value and call by reference.

584


What is tcp and udp?

593


What is a vararg?

536


Why is a string immutable?

535


What is executor memory?

506