explain about method overloading and method overriding with
difficult examples
Answer Posted / bhasker
Method Overloading:
--------------------
Method Overloading is nothing but the method name is
same and the number of parameters and types of parameters
are different.
Method Overriding:
--------------------
Method Overriding is nothing nut the super class
method signatuer we can inherit to the sub class method
signature is shoub be same.
Is This Answer Correct ? | 12 Yes | 0 No |
Post New Answer View All Answers
How do you check if a string is lexicographically in java?
What are the 8 data types in java?
What is a java list?
why java uses class level type casting ?
What is a ?
Can we have 2 main methods in java class?
What is set and get methods in java?
What is a war file?
What is strings in java?
Is java a super set of javascript?
Do I need java on my computer?
What are the important features of Java 10 release?
Why volatile is used in java?
Does google use java?
What is starvation?