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
Name some classes present in java.util.regex package.
What does jenkins do?
How do you convert bytes to character in java?
How many bits is a boolean?
Is it correct to say that due to garbage collection feature in java, a java program never goes out of memory?
What is locale?
Can a singleton class be inherited?
What is comparable and comparator interface? List their differences
What is the symbol for average?
What will happen if static modifier is removed from the signature of the main method?
What is reverse function?
What is the purpose of static methods and static variables?
What is the static keyword?
Is {a, n, d} a palindrome? If you are given a random string, is it a palindrome or not?
What is the use of a conditional inclusion statement in Java ?