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
Can a class have 2 constructors?
what is predefined function in java?
What is the difference between a local variable and an instance variable?
What is regex java?
what is object slice?
How can you write a loop indefinitely in java programming?
How to run a JAR file through command prompt?
How do you make an arraylist empty in java?
What are the 3 types of control structures?
What is the difference between declaration and definition in java?
What is integers and example?
What is java and its types?
Explain tree set and its features?
What is an abstract method in java programming?
What is the default value of local and global variables?