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 the difference between applet and application?
What are default methods ?
What are the 5 types of research methods?
What about main() method in java ?
What are loops in java? What are three types of loops?
What is finalize method?
What is classname class in java?
What is complexity and its types?
What is difference between == equals () and compareto () method?
What is scanner in java?
How do you declare a destructor in java?
If a class is declared without any access modifiers, where may the class be accessed in java programming?
How do you sing an Applet ?
What are the major advantages of internal iteration over external iteration?
Differentiate between postfix and prefix operators in java.