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
How does sublist works in java?
Explain creating threads by extending thread class ?
What is an iterator java?
What are the main differences between the java platform and other platforms?
What are mutable classes?
What is the common usage of serialization?
What is null object in java?
Can we sort array in java?
Which types of exceptions are caught at compile time?
Write a java program to print fibonacci series?
What is difference between throw and throws ?
What does compareto () do in java?
Explain the pointers in Java?
What is json parser in java?
What is concurrent hashmap and its features?