What is the difference between overloading and overriding a
function?

Answer Posted / jitesh singh

OVERLOADING is done in the same class with different
singnature or parameter pass in the function

OVERRIDING is done in different class but the signature or
the parameter is same

Is This Answer Correct ?    12 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why static functions are used?

570


Can there be an abstract method without an abstract class?

539


What is the meaning of immutable regarding string?

524


What is a function in java?

570


when to use ArrayList and when to use HashMap in webApplication.

3887






What is the point of java?

554


What are predefined functions?

578


What happens if an exception is not handled in a program?

626


How the interruptible method gets implemented?

565


What access modifiers can be used for class ?

542


Can you extend main method in java?

624


What is a classloader in java?

536


What is the += operator called?

579


What are the four versions of java?

547


Explain the difference between collection api and stream api in java8?

511