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 are the different types of multitasking?
What is the difference between char and char *?
What is the difference amongst jvm spec, jvm implementation, jvm runtime ?
What is difference between calling start() and run() method of thread?
How do you declare a destructor in java?
What is a constructor, constructor overloading in java?
In which order the iterator iterates over collection?
How is the marker interface used in Java?
Why is multiple inheritance not supported in java?
What is the purpose of the strictfp keyword?
What is static data type in java?
How do you remove all elements from an arraylist in java?
What is a method signature java?
What does s mean in regex?
What is the difference between static and global variables and also define what are volatile variables?