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
What is the difference between dom and sax parser in java?
How hashset works internally in java?
How we can make copy of a java object?
Is java ee a framework?
Is there any sort function in java?
How many types of threads are there in java?
How do you declare an array that will hold more than 64KB of data?
What is pojo class in java?
Explain different ways of creating a thread. Which one would you prefer and why?
What are bind parameters?
What all methods are used to prevent thread execution ?
What is the range of a character variable?
Can we use string in the switch case?
please send me hr interview questions in it industry
What is an empty list in java?