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

Can you explain the private protected field modifier?

664


What is dot operator?

663


How can you avoid serialization in child class if the base class is implementing the serializable interface?

724


What are kinds of processors?

655


What is the difference between assignment and initialization?

656






What will happen when using pass by reference in java?

605


What about main() method in java ?

655


what is the difference between process and thread? : Java thread

644


How many JVMs can run on a single machine and what is the Just-In-Time(JIT) compiler?

682


Is empty string in java?

702


How do you use substring in java?

628


What is the syntax and characteristics of a lambda expression?

669


How do I get 64 bit java?

628


What is the difference between instanceof and isinstance?

655


What is data type in computer?

608