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 mean by classloader in java?
Write down program for following scenario. Use java coding standard. You have array list with some words in it..we will call it as dictionary….and you have a arbitrary string containing some chars in it. You have to go through each word of dictionary and find out if that word can be constructed with the help of chars from arbitrary string given. If you find the word print it else print none.
What is int short for?
Difference between vector and arraylist.
What is the use of jtable?
What is t in generics in java?
What is the use of set in java?
What is the basic concept of java?
What is the function of http?
What differences exist between iterator and listiterator?
What are the methods of object class ?
Why collection doesn’t extend cloneable and serializable interfaces?
What is the difference between keyword and identifier?
How does multithreading take place on a computer with a single cpu?
What do you mean by boolean?