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 / mohamed yehiya
If both signature are same, i.e parameters
and if the method has co-variant return type
which means return type of int in one method and
return type of long in another method.
Consider safely as the method is overloaded.
if otherwise it's neither overloaded or overrided
just an another method in the class.
Is This Answer Correct ? | 0 Yes | 5 No |
Post New Answer View All Answers
Explain about the performance aspects of core java?
Can we extend a class with private constructor?
worst case complexities of Quick sort and Merge sort.
When should a function throw an exception?
Where is the find and replace?
Hi Anyone know the model / questions of the Federal bank sample questions for the post of Specialist Officers - Programmers. Please post if anyone have..
how to write a program for sending mails between client and server
How is it possible for two string objects with identical values not to be equal under the == operator?
Is null an object java?
What is locale in java?
How can you make sure that your singleton class will always return single instance in multi-threaded environment?
Is it possible to write a regular expression to check if string is a number?
What does pointer mean?
Is empty string in java?
Is null an object in java?