Hi Friends..
can any one provide the real time example for
methodoverloading and methodoverriding .........
Answer Posted / aravind
Example Method:
public void method(int a)
{
....;
....;
}
Method Overloading:
class
{
method(140,1,10,250);
}
Method Overriding:
re implement same method in a class with same or additional
attributes.
method()
{
...;
}
| Is This Answer Correct ? | 0 Yes | 8 No |
Post New Answer View All Answers
What do you understand by the bean persistent property?
List two java ide’s?
How do you write a scanner class in java?
What does it mean to flush a file?
Difference between ‘is-a’ and ‘has-a’ relationship in java?
What is charat java?
What is the difference between a synchronized method and a synchronized block?
What is method overloading and method overriding?
Difference between throw and throws?
Can vector have duplicates in java?
Can we create object of inner class in java?
Name some classes present in java.util.regex package.
What are the two types of exceptions in java? Which are the differences between them?
Why to use nested classes in java? (Or) what is the purpose of nested class in java?
What does the ‘static’ keyword mean? Is it possible to override private or static method in java?