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


Please Help Members By Posting Answers For Below Questions

What is default constructors?

543


What is unmodifiable collection in java?

514


When is update method called?

672


What does += mean in java?

576


How do you find the independent variable?

519






What do you mean by byte code?

519


What is codebase?

543


What is natural ordering in java?

530


Is void a return type?

555


Can set contain duplicates?

551


What are the differences between abstract class and interface?

513


List down the methods and interfaces of collection class in java.

545


What is string pool?

629


Explain why wait(), notify() and notifyall() methods are in object class rather than in the reading class?

563


What is autoboxing in java?

609