There are 2 methods in a class. Both have the same method
signature except for return types. Is this overloading or
overriding or what is it?
Answer Posted / ashu_deepu
it is not overloading bcos different return types does not mean overloading.
n 4 overriding inheritance should b used between 2 classes.
so it is neither overriding nor overloading.
| Is This Answer Correct ? | 8 Yes | 0 No |
Post New Answer View All Answers
What is floor math?
What is the difference between array list and vector in java?
what is an objects lock and which objects have locks? : Java thread
Is null an object java?
What are inner classes or non static nested classes in java?
What is Mutex (Mutual Exclusion Object) ?
Which class should you use to obtain design information about an object in java programming?
What is nextint java?
What is update method called?
What is += mean in java?
Can constructor be inherited?
Is main is a keyword?
How do you calculate square roots?
Give me some null interfaces in java?
What is the output of the below java program?