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
Explain different ways of creating a thread?
Why is the type for real numbers called double?
What are abstract methods in java?
Can we force the garbage collection to run?
What are void methods?
What methods are used to get and set the text label displayed by a button object?
Can we create our own wrapper class in java?
How do you delete a list in java?
Tell us something about different types of casting?
Explain about instanceof operator in java?
What are the main uses of java?
Is minecraft 1.15 out?
What is a variable simple definition?
How we can generate random numbers in java?
What is enhanced loop in java?