What is the difference between overloading and overriding a
function?
Answer Posted / ghanshyam dobariya
OVERLOADING: Declaration and definition are in the same
class i.e. a class in which they are defined.
OVERRIDING:Declaration is done at super class while actual
definition is define in sub class.
OVERLOADING: Any code mistake we make in defining it's code
, detected at compile time
OVERRIDING: Any code mistake we make in defining it's code
,detected at run time.
| Is This Answer Correct ? | 3 Yes | 3 No |
Post New Answer View All Answers
What do you mean by JVM?
What modifiers are allowed for methods in an interface?
Is an array a vector?
Hi all, I am dng a mini project on FileSplitter application which splits the GBs of logfile into Smaller chunks(mbs) depending on the split size." How to handle GBs file? I am getting OutOfMemoryException, when I input such GB sized file. Thx
What does void * mean?
What is array sorting in java?
How many bits is a 64 bit byte?
What does singleton mean in java?
What is the java idl system?
What is the purpose of the return statement?
What is a “stateless” protocol ?
List some important features of java 10 release?
How does class forname work in java?
How do you use compareto method?
What is java english?