Answer Posted / priyabrata patro
Method overloading happens in class with same method name but by modifying below features
1> By changing number of parameters
2> By changing ordinal position of parameter , i mean to say here is by changing datatype place.
And method overriding happens in two or more than two class , i mean defining same method declaration without any modification within two class and among of that two class , one class must extend another class and further also you can override this method , and this procedure continues till one subclass leaves overriding this method.
| Is This Answer Correct ? | 5 Yes | 0 No |
Post New Answer View All Answers
What is a cup of java?
How do you bind variables?
What is the largest long allowed by java?
Which collection is best for sorting in java?
Mention some interfaces implemented by linked list in java.
What is a predicate method?
Can you declare the main method as final?
What is the purpose of methodology?
What is synchronization and why is it important in java programming?
What is the use of a copy constructor?
What is the difference between the boolean & operator and the && operator in java programming?
What is the use of http-tunneling in rmi?
Explain about join() method?
What is meant by stack and queue?
How to declare objects of a class ?