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 / jan
The above program excute's fine ,This is overloading
In overloading concept return type in not Mandatory.
If my answer is not correct , please let me know
Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is default constructors?
What is unmodifiable collection in java?
When is update method called?
What does += mean in java?
How do you find the independent variable?
What do you mean by byte code?
What is codebase?
What is natural ordering in java?
Is void a return type?
Can set contain duplicates?
What are the differences between abstract class and interface?
List down the methods and interfaces of collection class in java.
What is string pool?
Explain why wait(), notify() and notifyall() methods are in object class rather than in the reading class?
What is autoboxing in java?